Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:togbankrob(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] < 6)
- {
- if(AdminDuty[playerid] != 1 && PlayerInfo[playerid][pAdmin] < 6)
- {
- 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.");
- return 1;
- }
- if(BankRobStatus==1)
- {
- BankRobStatus = 0;
- SendClientMessage(playerid, COLOR_WHITE, "You have ENABLED Bank Robberies, Timer has been RESET");
- KillTimer(banktime);
- // banktime = SetTimer("BankRobReset", 5400000, false);
- }
- else
- {
- BankRobStatus = 1;
- SendClientMessage(playerid, COLOR_WHITE, "You have DISABLED Bank Robberies, Timer has been STOPPED");
- KillTimer(banktime);
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_GRAD1, " You're not Authorized to use that command!");
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement