Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Robbery Failed

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

PHP Code:

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 ?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>