[HELP] Airbreak Jail escape
#6

What I would suggest would be to use Incognito's streamer, believe it or not. First of all, create a dynamic area using CreateDynamicRectangle, then use OnPlayerLeaveDynamicArea. Meaning, that when a player exits the cell area, and they are NOT jailed, then you can kick/ban the player.

pawn Код:
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
    if(areaid == mycellarea) //mycellarea is not defined, and must be defined using CreateDynamicRectangle
    {
        if(IsPlayerInJail[playerid]) //Also not defined, replace this with your variable that defines whether a player is jailed or not
        {
            Kick(playerid); //Or Ban(playerid); etc.
        }
    }
    return 1;
}
This is just an example and won't function properly if you paste it into your script.
Reply


Messages In This Thread
[HELP] Airbreak Jail escape - by chubz - 25.07.2013, 23:15
Re: [HELP] Airbreak Jail escape - by Richie© - 25.07.2013, 23:16
Re: [HELP] Airbreak Jail escape - by chubz - 25.07.2013, 23:33
Re: [HELP] Airbreak Jail escape - by Vanter - 26.07.2013, 00:34
Re: [HELP] Airbreak Jail escape - by chubz - 26.07.2013, 10:32
Re: [HELP] Airbreak Jail escape - by Threshold - 26.07.2013, 10:51
Re: [HELP] Airbreak Jail escape - by hossa - 26.07.2013, 11:04
Re: [HELP] Airbreak Jail escape - by chubz - 26.07.2013, 11:36
Re: [HELP] Airbreak Jail escape - by Konstantinos - 26.07.2013, 11:40

Forum Jump:


Users browsing this thread: 2 Guest(s)