Raised This Month: $ Target: $400
 0% 

Please add a countdown for this restart map code


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 01-07-2011 , 12:48   Please add a countdown for this restart map code
Reply With Quote #1

I have try to study the countdown from other people code, but I find that it's not easy...So, I decided to post this code out.
I want a client_print version countdown...
Please help.
Thank
Code:
#include <amxmodx>

public plugin_init()
{	
	register_plugin("Auto-Restart", "1.0", "ToT | V!PER")
	register_event("TextMsg", "restart_time", "a", "2&#Game_C")
	register_cvar("amx_autorestart", "15.0")
	return PLUGIN_CONTINUE
}

public restart_time()	
	set_task (get_cvar_float("amx_autorestart"),"restart_map",0)	

public restart_map()
{	 
	set_hudmessage(0, 100, 200, 0.05, 0.65, 2, 0.02, 6.0, 0.01, 0.1, 2)	  
	show_hudmessage(0, "Restart Now!")	 
	set_cvar_float("sv_restart",1.0)	
	return PLUGIN_HANDLED
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
 


Thread Tools
Display Modes

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 02:08.


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