Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.59 KB | None | 0 0
  1. COMMAND:restart(playerid, params[]) {
  2.     if(!IsAdmin(playerid, ADMIN_HEAD)) {
  3.         NoPermissionMessage(playerid);
  4.         return 1;
  5.     }
  6.     new hours, withplayers;
  7.     if(sscanf(params, "ii", hours, withplayers)) {
  8.         SendClientMessage(playerid, COLOR_GREY, "Wpisz: "C_DRED"/restart "C_GREY"<"C_DRED"godzin"C_GREY"> <"C_DRED"z graczami"C_GREY">");
  9.         return 1;
  10.     }
  11.     new string[128];
  12.     sprintf(string, "Serwer zostanie zrestartowany. Zmienne: %d | %d.", hours, withplayers);
  13.     SendClientMessage(playerid, COLOR_BLUE_1, string);
  14.     SetTimerEx("RestartServer", ((hours/3600)*1000), 0, "i", withplayers);
  15.     return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement