Quote:
Originally Posted by Excalibur.007
pev_valid(entity) checks if the entity is valid or not. So just use is_user_alive(entity)
and for the (!id | !infector),
I don't think is necessary. But if it for known error log, then leave it there. I still don't find problems in ZP 4.3 Fix 5a.
|
You still need to add this check in zp_user_infected_post
if (!infector) return;
since sometimes the infector is set to 0 (in the case of first zombie) so if you then do something with the infector (like check its zombie class) then ZP would throw a run-time error.
__________________