Advertisement
Guest User

gmx

a guest
Nov 18th, 2016
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. if(dialogid == DIALOG_GMX)
  2. {
  3. if(response)
  4. {
  5. SendClientMessageToAll(COLOR_YELLOW, "---- SERVER RESTART ----");
  6. SendClientMessageToAll(COLOR_RED, "The server will be restarted in 60 seconds.");
  7. foreach(Player, x)
  8. {
  9. OnPlayerDateUpdateX2(x);
  10. Update(x, pPayDayx);
  11. Update(x, pPayCheckx);
  12. Update(x, pFpunishx);
  13. Update(x, pConnectTimex);
  14. Update(x, pLawyerx);
  15. Update(x, pBank);
  16. Update(x, pCashx);
  17. Update(x, pRP);
  18. Update(x, pJailTimex);
  19. Update(x, pLevelx);
  20. Update(x, pPcarkey);
  21. Update(x, pmotokey);
  22. Update(x, phelikey);
  23. Update(x, pprcarkey);
  24. Update(x, pprcarkey2);
  25. Update(x, pPPluscarkey);
  26. Update(x, pPPluscarkey2);
  27. Update(x, pPlusSlot1);
  28. Update(x, pPlusSlot2);
  29. if(PlayerInfo[x][pAdmin] > 4)
  30. {
  31. SendClientMessage(x, COLOR_GREY, "- Player data saved.");
  32. SendClientMessage(x, COLOR_GREY, "- House data saved.");
  33. SendClientMessage(x, COLOR_GREY, "- Group data saved.");
  34. SendClientMessage(x, COLOR_GREY, "- Business data saved.");
  35. SendClientMessage(x, COLOR_GREY, "- Cars data saved.");
  36. SendClientMessage(x, COLOR_GREY, "- Server asset data saved.");
  37. SendClientMessage(x, COLOR_RED, "Restarting timer activated.");
  38. }
  39. }
  40. iGMXTick = 5;
  41. iGMXTimer = SetTimer("restartTimer", 1000, true);
  42. }
  43. else if(!response)
  44. {
  45. SendClientMessage(playerid, COLOR_GREY, "Restart attempt canned.");
  46. }
  47. return 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement