Quote:
Originally Posted by johnjg75
I haven't looked too much into it but i can suggest that you use read_data(1) once and store it in a variable so you dont keep calling that command.
|
Thanks
PHP Code:
public death_msg() {
new attacker = read_data(1)
if(get_user_flags(attacker) & ADMINACCESS && attacker<=maxplayers && attacker && attacker!=read_data(2)) zp_set_user_ammo_packs(attacker,zp_get_user_ammo_packs(attacker) + get_pcvar_num(ammo))
}
Do you see anything more?