Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_GMX)
- {
- if(response)
- {
- SendClientMessageToAll(COLOR_YELLOW, "---- SERVER RESTART ----");
- SendClientMessageToAll(COLOR_RED, "The server will be restarted in 60 seconds.");
- foreach(Player, x)
- {
- OnPlayerDateUpdateX2(x);
- Update(x, pPayDayx);
- Update(x, pPayCheckx);
- Update(x, pFpunishx);
- Update(x, pConnectTimex);
- Update(x, pLawyerx);
- Update(x, pBank);
- Update(x, pCashx);
- Update(x, pRP);
- Update(x, pJailTimex);
- Update(x, pLevelx);
- Update(x, pPcarkey);
- Update(x, pmotokey);
- Update(x, phelikey);
- Update(x, pprcarkey);
- Update(x, pprcarkey2);
- Update(x, pPPluscarkey);
- Update(x, pPPluscarkey2);
- Update(x, pPlusSlot1);
- Update(x, pPlusSlot2);
- if(PlayerInfo[x][pAdmin] > 4)
- {
- SendClientMessage(x, COLOR_GREY, "- Player data saved.");
- SendClientMessage(x, COLOR_GREY, "- House data saved.");
- SendClientMessage(x, COLOR_GREY, "- Group data saved.");
- SendClientMessage(x, COLOR_GREY, "- Business data saved.");
- SendClientMessage(x, COLOR_GREY, "- Cars data saved.");
- SendClientMessage(x, COLOR_GREY, "- Server asset data saved.");
- SendClientMessage(x, COLOR_RED, "Restarting timer activated.");
- }
- }
- iGMXTick = 5;
- iGMXTimer = SetTimer("restartTimer", 1000, true);
- }
- else if(!response)
- {
- SendClientMessage(playerid, COLOR_GREY, "Restart attempt canned.");
- }
- return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement