Bob_Marley

[PAWNO] Auto Restart

Nov 5th, 2012
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.40 KB | None | 0 0
  1. #include a_samp
  2. public OnGameModeInit() return SetTimer("Restart",1000,true);
  3. forward Restart();
  4. public Restart(){
  5.     new hour,minute,second; gettime(hour,minute,second);
  6.     if(hour == 5 && minute == 30 && second == 0)
  7.     {
  8.         SendClientMessageToAll(-1, "Происходит рестарт сервера...");
  9.         return SendRconCommand("gmx");
  10.     }
  11.     return 1;        
  12. }
Advertisement
Add Comment
Please, Sign In to add comment