AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with player thing (https://forums.alliedmods.net/showthread.php?t=9371)

Smokey485 01-16-2005 17:33

help with player thing
 
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.

Peli 01-16-2005 18:44

Try showing us your code? Duh.

More 01-16-2005 18:45

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)   } }

Smokey485 01-16-2005 19:26

thank you so much :)

Johnny got his gun 01-17-2005 04:43

I can imagine someone dying of this "plague" the last second defusing the bomb...

Smokey485 01-17-2005 11:10

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 :P, but it can be for counterstrike, people could eat too :-D


All times are GMT -4. The time now is 19:28.

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