Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - if(strcmp(cmd, "/robammu", true) == 0)
 - {
 - print("test1");
 - new success = random(2);
 - print("test2");
 - if(AmmuRobbedRecently == 1)
 - {
 - print("test3");
 - SendClientMessage(playerid, COLOR_GREY, "* This Location Was Robbed Recently, Try Again Later");
 - print("test4");
 - return 1;
 - }
 - print("test5");
 - if(PlayerInfo[playerid][pRobTime] >= 1)
 - {
 - print("test6");
 - SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait.");
 - print("test7");
 - return 1;
 - }
 - print("test8");
 - if(IsPlayerInRangeOfPoint(playerid, 10, 314.2548,-133.6627,999.6016) || IsPlayerInRangeOfPoint(playerid, 3,311.9589,-166.1407,999.6010))
 - {
 - print("test9");
 - if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40)
 - {
 - print("test0");
 - if(PlayerInfo[playerid][pDuty] == 0)
 - {
 - print("test10");
 - if(success == 1)
 - {
 - print("test11");
 - SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the Ammunation, please remain in the checkpoint for 290 Seconds!");
 - print("test12");
 - RobbingTime[playerid] = 95;
 - print("test13");
 - RobAmmuTimer = SetTimerEx("RobAmmu",3000,true,"i",playerid);
 - print("test14");
 - WantedPoints[playerid] = 5;
 - print("test15");
 - SetPlayerCriminal(playerid,255, "Robbing Ammunation");
 - print("test16");
 - PlayerInfo[playerid][pRobTime] = 3600;
 - print("test17");
 - AmmuRobbedRecently = 1;
 - print("test18");
 - SetTimer("UnsetAmmuRob",1500000,false);
 - print("test19");
 - OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout
 - print("test20");
 - }
 - print("test21");
 - else
 - {
 - print("test22");
 - SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob ammunation!");
 - print("test23");
 - WantedPoints[playerid] = 2;
 - print("test24");
 - SetPlayerCriminal(playerid,255, "Attempting to rob Ammunation");
 - print("test25");
 - PlayerInfo[playerid][pRobTime] = 3600;
 - print("test26");
 - }
 - print("test27");
 - }
 - print("test28");
 - else
 - {
 - print("test29");
 - SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!");
 - print("test30");
 - return 1;
 - }
 - print("test31");
 - }
 - print("test32");
 - else
 - {
 - print("test33");
 - SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!");
 - print("test34");
 - return 1;
 - }
 - print("test35");
 - }
 - print("test36");
 - else
 - {
 - print("test37");
 - SendClientMessage(playerid, COLOR_GREY, "* You're not at Ammunation's Rob Point!");
 - print("test38");
 - return 1;
 - }
 - print("test39");
 - return 1;
 - }
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment