15.12.2010, 06:10
Go in the script with pawno do CTRL + F
search for /robcityhall for example and untill you find:
Then remove this and no one will be able to rob the city all, do the same with /robbank, etc.
search for /robcityhall for example and untill you find:
Код:
if(strcmp(cmd, "/robcityhall", true) == 0) { new success = random(2); if(CityHallRobbedRecently == 1) { SendClientMessage(playerid, COLOR_GREY, "* This location was robbede recently, try again later"); return 1; } if(PlayerInfo[playerid][pRobTime] >= 1) { SendClientMessage(playerid, COLOR_GREY, "* You already attempted or robbed a place recently, please wait."); return 1; } if(IsPlayerInRangeOfPoint(playerid, 2, 358.5919,184.2908,1008.3828)) { if(GetPlayerWeapon(playerid) >= 24 && GetPlayerWeapon(playerid) <= 40) { if(PlayerInfo[playerid][pDuty] == 0) { if(success == 1) { SendClientMessage(playerid, COLOR_ORANGE, "* You are now Robbing the city Hall, please remain in the checkpoint for 60 Seconds!"); RobbingTime[playerid] = 60; RobCityHallTimer = SetTimerEx("RobCityHall",1000,true,"i",playerid); WantedPoints[playerid] = 5; SetPlayerCriminal(playerid,255, "Robbing the City Hall"); PlayerInfo[playerid][pRobTime] = 900; CityHallRobbedRecently = 1; SetTimer("UnsetCityHallRob",1500000,false); OnePlayAnim(playerid, "SHOP", "ROB_Shifty", 4.0, 0, 0, 0, 0, 0); // Rob Lookout } else { SendClientMessage(playerid, COLOR_ORANGE, "* You failed to rob the City Hall!"); WantedPoints[playerid] = 2; SetPlayerCriminal(playerid,255, "Attempting to rob the City Hall"); PlayerInfo[playerid][pRobTime] = 500; } } else { SendClientMessage(playerid, COLOR_GREY, "* Go Off duty first!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "* You need a deadly weapon to perform this Act!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, "* You're not at the City Hall Rob Point!"); return 1; } return 1; }