Raised This Month: $ Target: $400
 0% 

make a colldown like wc3FT one


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 03-29-2009 , 08:03   make a colldown like wc3FT one
Reply With Quote #1

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

Last edited by Fr33m@n; 03-29-2009 at 08:07.
Fr33m@n is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 03-29-2009 , 13:18   Re: make a colldown like wc3FT one
Reply With Quote #2

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.
__________________

anakin_cstrike 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 08:54.


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