Raised This Month: $ Target: $400
 0% 

Checks fail all the time?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 05-04-2010 , 07:45   Re: Checks fail all the time?
Reply With Quote #1

Thank you, but that will set the SH powers if the guy is a zombie, but I want it to be only on humans.

The survivor check doesn't work, since it is only the last man standing which becomes a survivor, all others are humans, and there are no checks for that, which is why I did this:

PHP Code:
set_power(id

    if (
zp_get_user_zombie(id) && zp_get_user_nemesis(id)) return 
     
    if (
gHasTest[id] && is_user_alive(id)) 
    { 
        
sh_set_hero_hpap(gHeroIDpcvarHealthpcvarArmor
    } 

So survivors and humans get powers, but it still wont work. If I remove

PHP Code:
if (zp_get_user_zombie(id) && zp_get_user_nemesis(id)) return 
it works, and sets the hero powers, but then zombies get the power too, which I do not want.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-04-2010 , 17:51   Re: Checks fail all the time?
Reply With Quote #2

Quote:
Originally Posted by Jelle View Post
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 View Post
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(gHeroIDpcvarHealthpcvarArmor
    } 

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)
__________________
fysiks is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode