[pawn]
else if (strcmp(cmd, "robbank", true) == 0) {
{
tmp = strtok(cmdtext, idx);
new szMsg[256], plr;
if(Maletin[playerid] == 1) {
SendClientMessage(playerid,0xAA3333AA,"You've robbed the bank! You can not steal it again!");
}
else if(!NeedPlayerInArea(playerid,-945.0223,-938.2779,-346.0285,-341.7365)) SendClientMessage(playerid, GREEN,"[Error] - You must be in the bank vault to steal it!");
else {
GameTextForPlayerBottom(playerid,"~y~ >>>>");
TogglePlayerControllable(playerid,0);
SetTimer("roboenprogreso", 9000, false);
SendClientMessage(playerid, COLOR_YELLOW,"Right now you're robbing the bank");
IncPlayerHandCash(playerid,400);
SetWantedLevel(playerid,6);
format( szMsg, sizeof( szMsg ), "%s is robbing the bank, the police has been informed", gPlayers[ playerid ], gPlayers[ plr ], cmdtext[ strlen( tmp ) +8 ] );
SendClientMessageToAll( COLOR_YELLOW, szMsg );
SetPlayerMarker(playerid,15);
SetPlayerSkin(playerid,0);
SetPlayerSkin(playerid,129);
ToggleGreenScanlinesForPlayer(playerid,1);
ToggleWidescreenForPlayer(playerid,1);
Maletin[playerid] = 1;
}
}
return 1;
}
[/pawn]
NOW is for gups [pawn]Compile succesfuly[/pawn]