Raised This Month: $ Target: $400
 0% 

help with player thing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-16-2005 , 17:33   help with player thing
Reply With Quote #1

How do I make all players in the server lose 1 hp every 12 seconds, I coded it already but it wont work, help?

I did id for the player, but I dont know how to do all players.
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Peli
Veteran Member
Join Date: Mar 2004
Location: San Diego, CA
Old 01-16-2005 , 18:44  
Reply With Quote #2

Try showing us your code? Duh.
Peli is offline
Send a message via MSN to Peli
More
Member
Join Date: Nov 2004
Location: Internet
Old 01-16-2005 , 18:45  
Reply With Quote #3

Code:
public plugin_init() {   register_plugin("abc", "0.1", "abc")   set_task(12.0, "do_health", 0, "", 0, "b") } public do_health() {   new players[32], count   get_players(players, count)   for (new i = 0; i < count; i++) {     set_user_health(players[i], get_user_health(players[i]) - 1)   } }
More is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-16-2005 , 19:26  
Reply With Quote #4

thank you so much
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 01-17-2005 , 04:43  
Reply With Quote #5

I can imagine someone dying of this "plague" the last second defusing the bomb...
Johnny got his gun is offline
Smokey485
Senior Member
Join Date: Dec 2004
Location: Newt 'Ellin
Old 01-17-2005 , 11:10  
Reply With Quote #6

Quote:
Originally Posted by Johnny got his gun
I can imagine someone dying of this "plague" the last second defusing the bomb...
lol, thatd be if this was for counterstrike, this is for the specialists role playing , but it can be for counterstrike, people could eat too :-D
Smokey485 is offline
Send a message via AIM to Smokey485 Send a message via MSN to Smokey485
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 19:28.


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