12.06.2017, 12:49
I used the code when the player is out of checkpoint of,the robbery must fail.
But the robbery won't stop even if i go out of checkpoint and i step in any other checkpoint? what's the problem ?
PHP код:
case FBI_ROB:
{
if(IsRobbingFBI{playerid} == true)
{
KillTimer(fbitimer{playerid});
IsRobbingFBI{playerid} = false;
GameTextForPlayer(playerid,"~r~Robbery Failed", 3000, 5);
SendClientMessage(playerid,RED,"You have left the checkpoint and failed the robbery.");
}
else
{
IsRobbingFBI{playerid} = false;
}
}