Quote:
Originally Posted by meTaLiCroSS
PHP Code:
if(infector > 0 && (zp_get_user_zombie_class(infector) == g_zclass_ghost) && !zp_get_user_nemesis(infector))
"infector" would not be always a player id. What about if you get infected by console? Where's the "infector" player id? Some things that you need to ask you before coding something. 
|
He meant that the infector could be something else than a player, so you must validate the player.
PHP Code:
if((1 <= infector <= 32) && (zp_get_user_zombie_class(infector) == g_zclass_ghost) && !zp_get_user_nemesis(infector))