Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- COMMAND:restart(playerid, params[]) {
- if(!IsAdmin(playerid, ADMIN_HEAD)) {
- NoPermissionMessage(playerid);
- return 1;
- }
- new hours, withplayers;
- if(sscanf(params, "ii", hours, withplayers)) {
- SendClientMessage(playerid, COLOR_GREY, "Wpisz: "C_DRED"/restart "C_GREY"<"C_DRED"godzin"C_GREY"> <"C_DRED"z graczami"C_GREY">");
- return 1;
- }
- new string[128];
- sprintf(string, "Serwer zostanie zrestartowany. Zmienne: %d | %d.", hours, withplayers);
- SendClientMessage(playerid, COLOR_BLUE_1, string);
- SetTimerEx("RestartServer", ((hours/3600)*1000), 0, "i", withplayers);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement