#define MAX_BANKJOB_EARN 500000 #define BANK_JOB_KILLER_EARN 100000 #define TIME_BETWEEN_BANKJOBS 5 //in hours #define BANK_JOB_TIME 30 //in mins #define BANK_DELIVER_TIME 30 //in mins new TimeAfterBankJob = 0; new BankJobPlayer = 999; new BankJobTime = -1; new BankDeliverTime = -1; new iBankjob; CMD:robbank(playerid, params[]) { if(PlayerInfo[playerid][pLevel] < 4) { SendClientMessage(playerid, COLOR_GREY, " You must be a level 4 or higher to be able to rob the bank."); return 1; } if(IsACop(playerid)) { SendClientMessage(playerid, COLOR_GREY, " Law Enforcement Officials cannot rob the bank."); return 1; } if(!IsPlayerInRangeOfPoint(playerid, 3.0, 1448.44, -988.52, 1639.78)) { SendClientMessage(playerid, COLOR_GREY, " You are not at the bank safe."); return 1; } if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS) { new bjt; bjt = TIME_BETWEEN_BANKJOBS - TimeAfterBankJob; format(string, sizeof(string), " You must wait %d hours before making the next bank robbery attempt.", bjt); SendClientMessage(playerid, COLOR_GREY, string); return 1; } if(BankJobPlayer < 999 && BankJobPlayer != playerid) { SendClientMessage(playerid, COLOR_GREY, " Someone is already robbing the bank."); return 1; } if(BankJobPlayer == playerid) { format(string, 256, " You're already robbing the bank! %d minutes left.", BankJobTime / 2); SendClientMessage(playerid, COLOR_GREY, string); return 1; } new Cops = 0; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsACop(i)) { Cops += 1; } } if(!(Cops >= 3)) { SendClientMessage(playerid,COLOR_GREY," There must be at least 3 Law Enforcement Officials online."); return 1; } format(string, 256, "You have started the robbery, you must stay inside the bank for %d minutes.", BANK_JOB_TIME/2); SendClientMessage(playerid, COLOR_WHITE, string); if(PlayerInfo[playerid][pWantedLevel] <= 1) { PlayerInfo[playerid][pWantedLevel] += 5; } else if(PlayerInfo[playerid][pWantedLevel] >= 2) { PlayerInfo[playerid][pWantedLevel] = 6; } SetPlayerCriminal(playerid, 999, "Bank Robbery"); format(string, 256, "City Alert: The Los Santos Bank is being robbed!"); SendClientMessageToAll(COLOR_LIGHTBLUE, string); BankJobTime = BANK_JOB_TIME; BankJobPlayer = playerid; return 1; iBankjob = CreatePickup(1239, 23, 2309.1565,-2.0596,26.7422); //Bank Rob if(pickupid == iBankjob) { new string[128]; new bjt = TIME_BETWEEN_BANKJOBS - TimeAfterBankJob; format(string, sizeof(string), "~g~Los Santos Bank~n~~y~Vulnerable in: %d hours~n~~w~Type ~r~/robbank ~w~to rob the bank!", bjt); GameTextForPlayer(playerid, string, 5000, 3); return 1; public CarCheck() { new string[128]; new BankJobMinutes; new BankDeliverMinutes; if(BankJobPlayer != 999) { BankJobMinutes = BankJobTime / 2; if(BankDeliverTime == -1 && !IsPlayerInRangeOfPoint(BankJobPlayer, 30.0, 1431.04, -990.12, 1639.78)) { format(string, 256, "City Alert: The Bank Robbery attempt has failed!"); SendClientMessageToAll(COLOR_LIGHTBLUE, string); StopPlayerHoldingObject(BankJobPlayer); BankJobPlayer = 999; BankJobTime = -1; BankDeliverTime = -1; TimeAfterBankJob = 0; } if(BankDeliverTime == -1 && IsPlayerInRangeOfPoint(BankJobPlayer, 30.0, 1431.04, -990.12, 1639.78)) { format(string, sizeof(string), "~y~%d minutes left", BankJobMinutes); GameTextForPlayer(BankJobPlayer, string, 5000, 1); if(BankJobTime > 0) BankJobTime --; if(BankJobTime == 0) { BankDeliverTime = BANK_DELIVER_TIME; BankDeliverMinutes = BankDeliverTime / 2; CP[BankJobPlayer] = 10; SetPlayerCheckpoint(BankJobPlayer,-2187.0906,2414.6802,5.1563,2.5); format(string, 256, "You have just finished packing money into your briefcase. You have %d minutes to take it to the red marker on your map!", BankDeliverMinutes); SendClientMessage(BankJobPlayer, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s finishes packing money into their briefcase.", PlayerName(BankJobPlayer)); ProxDetector(30.0, BankJobPlayer, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SetPlayerHoldingObject(BankJobPlayer, 1550, 1, -0.029999, -0.159999, -0.019999, -180.000000, 85.000000, -10.000000); } } }
C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(2955) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(2962) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(2970) : error 017: undefined symbol "GivePlayerCash" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(2973) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(2980) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(2987) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3001) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3010) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3022) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3041) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3055) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3069) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3077) : error 017: undefined symbol "GivePlayerCash" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3082) : error 017: undefined symbol "ProxDetector" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3241) : error 017: undefined symbol "GivePlayerCash" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3496) : error 017: undefined symbol "GivePlayerCash" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(3497) : error 017: undefined symbol "GivePlayerCash" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(4798) : error 017: undefined symbol "NOPCheck" C:\Users\Mohamed\Desktop\MLRP-Update 2.pwn(5375) : error 017: undefined symbol "NOPCheck"
if(BankDeliverTime == -1 && IsPlayerInRangeOfPoint(BankJobPlayer, 30.0, 1431.04, -990.12, 1639.78))
{
format(string, sizeof(string), "~y~%d minutes left", BankJobMinutes);
GameTextForPlayer(BankJobPlayer, string, 5000, 1);
Toward the bottom of the script posted, you have:
pawn Код:
|
if(pickupid == iBankjob)
{
new string[128];
new bjt = TIME_BETWEEN_BANKJOBS - TimeAfterBankJob;
format(string, sizeof(string), "~g~Los Santos Bank~n~~y~Vulnerable in: %d hours~n~~w~Type ~r~/robbank ~w~to rob the bank!", bjt);
GameTextForPlayer(playerid, string, 5000, 3);
return 1;
if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS) { new bjt; bjt = TIME_BETWEEN_BANKJOBS - TimeAfterBankJob; format(string, sizeof(string), " You must wait %d hours before making the next bank robbery attempt.", bjt); SendClientMessage(playerid, COLOR_GREY, string); return 1; }
I guess there's a mistake here...
But I don't know... Код:
if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS) { new bjt; bjt = TIME_BETWEEN_BANKJOBS - TimeAfterBankJob; format(string, sizeof(string), " You must wait %d hours before making the next bank robbery attempt.", bjt); SendClientMessage(playerid, COLOR_GREY, string); return 1; } |