AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   make a colldown like wc3FT one (https://forums.alliedmods.net/showthread.php?t=88799)

Fr33m@n 03-29-2009 08:03

make a colldown like wc3FT one
 
first sorry for my bad english

i want to create a cooldown like wc3Ft one. if the user use a power (all that you want ^^) he must wait 10 12 15 sec after use it again (cvar)

but if the player respawn with everything you want. the cooldown will not restart.

if the player must wait 14 seconds when he was kill. after respawn he must always wait 14 seconds

anakin_cstrike 03-29-2009 13:18

Re: make a colldown like wc3FT one
 
Well, the simplistic way is creating a task after a player used the power. Before that, a variable with the value of 1 or true wich means he can use that power. After the task, asign that variable to 0 or false.


All times are GMT -4. The time now is 08:54.

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