Command Robbank By Shadows Ok...
[pawn]else if(strcmp(cmdtext,"robbank",true) == 0)
{
if(onduty[playerid] == 0)
{
if(PlayerToPoint(10.0, playerid, -895.0245, -341.0267, 13.4269))
{
if(bankrobbed == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"You are robbing the bank,watchout cops may come...");
MessageToDuty(COLOR_BLUE,"[SE:PD Emergency]: All units be advised,local bank rob.EMSUITS allowed");
new mywanted;
mywanted = PlayerInfo[playerid][Wanted];
PlayerInfo[playerid][Wanted] = mywanted+15;
SetTimer("shallwait",500000,0);
brobber = gPlayers[playerid];
SetTimer("enough",130000,0);
bankrobbed = 1;
robber[playerid] = 1;
emallow = 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,"Bank was already robbed...");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"You need to be in the bank..");
}
}
else
{
SendClientMessage(playerid,COLOR_RED,"You cannot rob a bank!");
}
return 1;
}[/pawn]