Bug -
McFellow - 26.07.2012
Hello,
Rob bank system and it's working but my allow robbank system isn't working this is allow rob bank
pawn Код:
CMD:allowrobbank(playerid, params[])
{
if (!(PlayerInfo[playerid][pAdmin] >= 4))
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
return 1;
}
TimeAfterBankJob = TIME_BETWEEN_BANKJOBS;
SendClientMessage(playerid, COLOR_GREY, "Bank robbery is now allowed!");
if(BankRobStatus==1)
return 1;
}
In game it says you allowed rob bank under that unknown command
But you cannot rob the bank again
Re: Bug -
McFellow - 26.07.2012
Some one?
Re: Bug -
[KHK]Khalid - 26.07.2012
pawn Код:
CMD:allowrobbank(playerid, params[])
{
if (!(PlayerInfo[playerid][pAdmin] >= 4))
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
return 1;
}
TimeAfterBankJob = TIME_BETWEEN_BANKJOBS;
SendClientMessage(playerid, COLOR_GREY, "Bank robbery is now allowed!");
if(BankRobStatus==1)
return 1;
return 1; // added
}
Re: Bug -
McFellow - 27.07.2012
Sorry for bumbing but it's still not working it says you allowed bank robbery but if I try to /robbank I says: Bank Robberies are currently DISABLED at THIS TIME or has been RECENTLY robbed!
AW: Bug -
dalkgamler - 27.07.2012
show us the cmd /robbank
Re: Bug -
Alexis1999 - 27.07.2012
pawn Код:
CMD:allowrobbank(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] < 4)
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
return 1;
}
TimeAfterBankJob = TIME_BETWEEN_BANKJOBS;
SendClientMessage(playerid, COLOR_GREY, "Bank robbery is now allowed!");
BankRobStatus=1;
return 1;
}
Re: Bug -
McFellow - 27.07.2012
Dalkgamler here
pawn Код:
CMD:robbank(playerid, params[])
{
if(BankRobStatus==1)
{
SendClientMessage(playerid, COLOR_GREY, "Bank Robberies are currently DISABLED at THIS TIME or has been RECENTLY robbed!");
return 1;
}
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GREY, " You must be a level 3 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,1431.5999755859,-956.40002441406,7.8000001907349))
{
SendClientMessage(playerid, COLOR_GREY, " You are not at the bank safe.");
return 1;
}
if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS)
{
new bjt;
new string[128];
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)
{
new string[128];
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 >= 0))
{
SendClientMessage(playerid,COLOR_GREY," There must be at least 6 Law Enforcement Officials online.");
return 1;
}
new string[128];
new giveplayerid;
format(string, 256, "You have started the robbery, you must stay inside the bank for %d minutes.", BANK_JOB_TIME);
SetPlayerColor(playerid, COLOR_TWRED);
SetPlayerToTeamColor(playerid);
SendClientMessage(playerid, COLOR_WHITE, string);
if(PlayerInfo[MAX_PLAYERS][pWantedLevel] <= 1)
{
WantedPoints[giveplayerid] += 6;
}
else if(PlayerInfo[MAX_PLAYERS][pWantedLevel] >= 2)
{
WantedPoints[giveplayerid] += 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;
SetTimer("BankRobReset", 5400000, false);
BankRobStatus = 1;
return 1;
}
Re: Bug -
McFellow - 27.07.2012
Nevermind fixed
Re: Bug -
Devilxz97 - 27.07.2012
pawn Код:
CMD:allowrobbank(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
SendClientMessage(playerid, red, "You are not authorized to use this command.");
return 1;
}
TimeAfterBankJob = TIME_BETWEEN_BANKJOBS;
SendClientMessage(playerid, COLOR_GREY, "Bank robbery is now allowed!");
BankRobStatus = 1;
return 1;
}
Re: Bug -
McFellow - 27.07.2012
Now I got a other problem if you do /robbank In game and you wait and you don't move or move and you wait it says bank robbery fails