Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - #define COLOR_RED 0xAA3333AA
 - #define FILTERSCRIPT
 - #include <a_samp>
 - new Timer0;
 - forward a0(playerid);
 - public OnFilterScriptInit()
 - {
 - print("\n-----------------------------------");
 - print("Automatic Restarter ");
 - print("----------------------------------- ");
 - print("by Rokzlive aka Whatcha ");
 - print("-----------------------------------\n");
 - return 1;
 - }
 - public OnFilterScriptExit()
 - {
 - return 1;
 - }
 - public a0(playerid)
 - {
 - KillTimer(Timer0);
 - Timer0 = SetTimer("a0",600000,false);
 - SendRconCommand("hostname SERVER NAME HERE!!!!!");//Replace SERVER NAME HERE!!!!! With Your Server Name
 - SendRconCommand("say SERVER RESTARTING!");
 - SendRconCommand("gmx");
 - KillTimer(Timer0);
 - return 1;
 - }
 - public OnPlayerCommandText(playerid, cmdtext[])
 - {
 - if(strcmp(cmdtext, "/restart", true) == 0 && IsPlayerAdmin(playerid))
 - {
 - Timer0 = SetTimer("a0",600000,false);
 - SendClientMessage(playerid, COLOR_RED, "SYSTEM: Restarting in 10 minutes!");
 - SendRconCommand("say SERVER RESTARTING IN 10 MINUTES!");
 - SendRconCommand("hostname SERVER NAME HERE!!!!! [Pending Restart!]");//Replace SERVER NAME HERE!!!!! With Your Server Name
 - return true;
 - }
 - return 0;
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment