Raised This Month: $ Target: $400
 0% 

if(!is_user_alive)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-26-2005 , 09:53   if(!is_user_alive)
Reply With Quote #1

Can sombody help me here? - I got problems in the "if" section.


Code:
public hudLoop(id) {               if(!is_user_alive(id)) {                             remove_task(id)                             set_task(0.5,"hudDead",id)               }               if(is_user_alive(id)) {                             remove_task(id)                             set_task(1.0,"hudAlive",id)               }               return PLUGIN_CONTINUE } public hudDead(id) {               set_hudmessage(255, 0 , 0, 0.00, 0.50, 0, 0.0, 0.1, 0.2, 0.2, 10)               show_hudmessage(id,"DEAD")               return PLUGIN_HANDLED } public hudAlive(id) {                             new ping, loss               get_user_ping(id,ping,loss)               set_hudmessage(0, 0 , 255, 0.00, 0.50, 0, 0.0, 1.0, 0.0, 0.0, 10)               show_hudmessage(id,"Ping: %i^nLoss: %i", ping, loss)               return PLUGIN_HANDLED }

I have a task, that would set it to start.

Code:
set_task(3.0,"hudLoop",id,_,_,_,1)
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
KyleD
Member
Join Date: Mar 2005
Location: Anchorage, AK
Old 03-26-2005 , 18:55  
Reply With Quote #2

What exactly is your problem? Explain more, and maybe we can help you.
__________________
KyleD is offline
Send a message via MSN to KyleD
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 03-27-2005 , 09:41  
Reply With Quote #3

Well, when i am dead, there aint appearing that red 'DEAD' hud message.. And when im alive the green 'ALIVE' hud message aint appearing, thats my problem...
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-27-2005 , 18:20  
Reply With Quote #4

Quote:
Originally Posted by stigma
there aint appearing that red 'DEAD' hud message..
Just had to quote that for lack of good grammar.

Quote:
Originally Posted by stigma
when im alive the green 'ALIVE' hud message aint appearing, thats my problem...
There is no 'ALIVE' hud message.

When is hudLoop being initiated?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 09:54.


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