Raised This Month: $ Target: $400
 0% 

[SOLVED] Setting health in Ham_Spawn, error come in game


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 06-05-2009 , 18:22   [SOLVED] Setting health in Ham_Spawn, error come in game
Reply With Quote #1

I am using this code:
PHP Code:
public fwSpawn(id) {
    if (
is_user_alive(id)) {
        new 
iHealth pev(idpev_health);
        
        switch (
cs_get_user_team(id)) {
            case 
CS_TEAM_CTset_pev(idpev_healthiHealth gPlayerCtHealth[id]);
            case 
CS_TEAM_Tset_pev(idpev_healthiHealth gPlayerTHealth[id]);
        }
    }

It's like your dead all the time but still alive.

Watch the picture.

It worked before, but when i coded abit more (not this health stuff), this happened, then i removed what i made, and its still there :S

gPlayerCtHealth[id] and gPlayerTHealth[id] can only be those values: 0, 10, 20, 30, 40, 50.

Thanks
-zacky
Attached Thumbnails
Click image for larger version

Name:	hahajsrjs.jpg
Views:	301
Size:	96.0 KB
ID:	43293  

Last edited by zacky; 06-06-2009 at 06:45.
zacky is offline
Send a message via Skype™ to zacky
 



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 13:52.


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