Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #define Minutes 30
- new Min
- new const Tag[] = "[Amxx]"
- public plugin_init()
- {
- register_plugin("rs", "97056", "xflane")
- set_task(60.0,"Minute",_,_,_,"b")
- Min = Minutes;
- }
- public Minute()
- {
- Min--;
- client_print(0,print_chat,"%s Time Left To Restart %i",Tag,Min)
- if(Min == 0)
- {
- Min -= 1;
- client_print(0,print_chat,"%s Restarting Server",Tag)
- set_task(3.0,"Restart")
- }
- }
- public Restart()
- {
- server_cmd("restart")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement