public DeathMsg()
{
new killer = read_data(1);
new victim = read_data(2);
if(!is_user_connected(killer))
return PLUGIN_CONTINUE;
if(ma_klase[victim] && !ma_klase[killer])
cod_set_user_xp(killer, cod_get_user_xp(killer)+2000);
if(ma_klase[killer])
{
new cur_health = pev(killer, pev_health);
new Float:max_health = 100.0+cod_get_user_health(killer);
new Float:new_health = cur_health+25.0<max_health? cur_health+25.0: max_health;
set_pev(killer, pev_health, new_health);
}
return PLUGIN_CONTINUE;
}
Czy jest możliwość aby te funkcję były dostępne dopiero gdy gracz ma określoną flagę?
Aaa.. i nie chcę dodawać warunku w
public cod_class_enabled(id)tylko w tym publicu wyżej . jest taka możliwość ?
Edited by Rozum ?, 07.01.2012 23:57.