Quote:
Originally Posted by Jelle
What I want to do, is to make a check to see if a player is a zombie or not, if he is [a zombie], then set the SH powers. If I do this, it works, but ofc. for both zombie and survivor
|
Quote:
Originally Posted by Jelle
Thank you, but that will set the SH powers if the guy is a zombie, but I want it to be only on humans.
|
There must have been a typo in your originaly request.
PHP Code:
set_power(id)
{
if (!zp_get_user_zombie(id) && is_user_alive(id))
{
sh_set_hero_hpap(gHeroID, pcvarHealth, pcvarArmor)
}
}
I'm a bit confused as to why you pass "id" and do checks for it but then you set the attributes for everybody with that Hero? (Keep in mind I'm not fully aware of how this Hero stuff works)
__________________