Raised This Month: $ Target: $400
 0% 

CountDown...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 05-04-2012 , 17:41   CountDown...
Reply With Quote #1

Hi all, I make this CountDown:

Code:
#include <amxmodx> #include <amxmisc> new Time = 15; new DefaultValue; public plugin_init()     register_clcmd("say /count", "CountDown"); public CountDown() {     if(Time == 0) {         Time = DefaultValue;         DefaultValue = 0;         return;     }         Time--;     DefaultValue++;     client_print(0, print_chat, "CountDown: %d", Time);     set_task(1.0, "CountDown"); }

It works perfectly, but, have other way to make this? More optimized?
__________________

Last edited by kramesa; 05-04-2012 at 17:48.
kramesa is offline
 



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 00:23.


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