Raised This Month: $ Target: $400
 0% 

Show the time before restart


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 01-04-2009 , 21:06   Show the time before restart
Reply With Quote #1

First,i am sorry for my poor english

i need some help for the plugins,
it will so the player when will restart
like this 20->19->18->17->16
Game will start in %s sec,seconds
Code:
#include <amxmodx>
 
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,"[AMXX] Automatic Round-Restart!")    
   set_cvar_float("sv_restart",2.0)   
   return PLUGIN_HANDLED
}   
 
public plugin_init() {   
register_plugin("Auto-Restart","1.00","ToT | V!PER")   
register_event("TextMsg","restart_time","a","2&#Game_C")   
register_cvar("amx_autorestart","20.0")
return PLUGIN_CONTINUE     
}

Last edited by biscuit628; 01-05-2009 at 22:38.
biscuit628 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 09:17.


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