Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. CMD:togbankrob(playerid, params[])
  2. {
  3. if(PlayerInfo[playerid][pAdmin] < 6)
  4. {
  5. if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
  6. {
  7. SendClientMessage(playerid,COLOR_WHITE, "You're not on-duty as admin. To access your admin commands you must be on-duty. Type /aduty to go on-duty.");
  8. return 1;
  9. }
  10. if(BankRobStatus==1)
  11. {
  12. BankRobStatus = 0;
  13. SendClientMessage(playerid, COLOR_WHITE, "You have ENABLED Bank Robberies, Timer has been RESET");
  14. KillTimer(banktime);
  15. // banktime = SetTimer("BankRobReset", 5400000, false);
  16. }
  17. else
  18. {
  19. BankRobStatus = 1;
  20. SendClientMessage(playerid, COLOR_WHITE, "You have DISABLED Bank Robberies, Timer has been STOPPED");
  21. KillTimer(banktime);
  22. }
  23. }
  24. else
  25. {
  26. SendClientMessage(playerid, COLOR_GRAD1, " You're not Authorized to use that command!");
  27. return 1;
  28. }
  29. return 1;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement