FreeZe adlı üyeden alıntı: mesajı görüntüle
buyur hocam senin için yaptım :P

#include <amxmodx>
#include <engine>
#include <cstrike>

new gk_sprey

public plugin_init( ) {
	register_plugin( "GencKafe.Net SpreyKapat", "1.0", "kaNuNSuZ" );
	gk_sprey = register_cvar( "genckafe_sprey", "1" );
	register_impulse( 201, "genckafe_sprey" );
}


public genckafe_sprey( id, uc_handle, seed ) {	
	if( get_pcvar_num( gk_sprey ) ) {
		if( is_user_alive( id ) ) {
			client_print( id, print_center, "Sprey kullanimi kapatilmistir" );
			
			return PLUGIN_HANDLED_MAIN;
		}
	}
	
	return PLUGIN_CONTINUE;
}
amx_cvar genckafe_sprey 1  > sprey kullanımını yasaklar
amx_cvar genckafe_sprey 0  > sprey kullanımını serbest bırakır
indir
çok teşekkür ederim