Raised This Month: $ Target: $400
 0% 

Making a Cool Down


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 11-02-2011 , 14:43   Re: Making a Cool Down
Reply With Quote #5

Code:
#include <amxmodx> #define TASKID  1996 #define SECONDS 10 new iSeconds public plugin_init() {     register_plugin( "Countdown Example", "1.0", "Wrecked" )         register_logevent( "LogEventRoundStart", 2, "1=Round_Start" ) } public LogEventRoundStart() {     if( task_exists( TASKID ) )         remove_task( TASKID )             iSeconds = SECONDS     set_task( 1.0, "TaskShowCountdown", TASKID, _, _, "a", SECONDS ) } public TaskShowCountdown() {     set_hudmessage( 120, 120, 120, 0.50, 0.50, 0, 0.1, 0.8, 0.1, 0.1, -1 )     show_hudmessage( 0, "Seconds Remaining: %i", iSeconds-- ) }

http://forums.alliedmods.net/showthr...ghlight=common
Devil259 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 14:25.


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