Robbery Failed
#1

I used the code when the player is out of checkpoint of,the robbery must fail.

PHP код:
case FBI_ROB:
        {
            if(
IsRobbingFBI{playerid} == true)
            {
                
KillTimer(fbitimer{playerid});
                
IsRobbingFBI{playerid} = false;
                
GameTextForPlayer(playerid,"~r~Robbery Failed"30005);
                
SendClientMessage(playerid,RED,"You have left the checkpoint and failed the robbery.");
            }
            else
            {
                
IsRobbingFBI{playerid} = false;
            }
        } 
But the robbery won't stop even if i go out of checkpoint and i step in any other checkpoint? what's the problem ?
Reply


Messages In This Thread
Robbery Failed - by Cyboorg - 12.06.2017, 12:49
Re: Robbery Failed - by Amads - 12.06.2017, 13:28
Re: Robbery Failed - by Cyboorg - 12.06.2017, 13:32
Re: Robbery Failed - by Amads - 12.06.2017, 13:34
Re: Robbery Failed - by Cyboorg - 12.06.2017, 13:40
Re: Robbery Failed - by Vince - 12.06.2017, 14:30
Re: Robbery Failed - by Cyboorg - 12.06.2017, 14:44

Forum Jump:


Users browsing this thread: 2 Guest(s)