Spider_Man Administrator
Numarul mesajelor : 9 Data de inscriere : 07/06/2009
| Subiect: Cum ii dai afrara pe cei care dau hs prin pereti Mier Iun 10, 2009 1:27 am | |
| Sa incepem Cod: #include #include
#define PLUGIN "Wall Kill" //rewrited #define VERSION "1.0" #define AUTHOR "Red-X"
new g_warning[32], maxim_warnings;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR); register_event("DeathMsg", "_death_msg", "a");
maxim_warnings = register_cvar("amx_maxwarnings","2");
register_logevent("round_start", 2, "1=Round_Start"); }
public _death_msg() { new killer = read_data(1) new victim = read_data(2) new head_shot = read_data(3)
new kweapon[32] read_data(4,kweapon,31)
if(!is_user_connected(killer) || !is_user_connected(victim)) return 1;
if(equali(kweapon,"grenade")) return 1;
new bool:is_visible = fm_is_ent_visible(killer,victim,1)
if(!is_visible && head_shot) { g_warning[killer]++
if(g_warning[killer] >= get_pcvar_num(maxim_warnings)) { g_warning[killer] = 0; server_cmd("kick #%i ^"Suspected with wall & aim! Watch out!^"",get_user_userid(killer)) } } return 0; }
public round_start() { new players = get_playersnum(0)
for(new i = 0; i < players; i++) { g_warning[i] = 0; } }
Ai cvar amx_maximwarnings - cate hs prin perete poti sa dai maxim pe runda!Daca a facut cate poate maxim ii da kick!
NOTE:Trebuie fakemeta_util.inc pentru a il compila asa ca am pus o versiune compilata deja!
**Si Cum il fac sa mearga¿ Simplu
Creezi un fisier .txt,ii modifici extensia in .sma,scrii codul acela,iar apoi il compilezi
**Cum il compilez¿ Simplu
Intri AICI Si Uplodezi sma. | |
|