[DUV] Checar se o player estб preso
#7

pawn Код:
forward ChecagemPreso(playerid);

// quando prender o truta: SetTimerEx("ChecagemPreso", 1000, 0, "d", playerid);

public ChecagemPreso(playerid)
{
    if(pStats[playerid][Preso] == 1)
    {
        if(!IsPlayerInRangeOfPoint(playerid, 25, 264.6136,77.2980,1001.0391)) // se ele estiver fora da posiзгo...
        {
            SendClientMessageToAll(COLOR_RED, "Alguйm saiu da cela da cela e foi kickado automбticamente");
            Kick(playerid);
        }
        SetTimerEx("ChecagemPreso", 1000, 0, "d", playerid); // se ele ainda estб preso o timer continua.
    }
}
Reply


Messages In This Thread
[DUV] Checar se o player estб preso - by [BR]Michael - 05.06.2010, 19:58
Re: [DUV] Checar se o player estб preso - by ipsBruno - 05.06.2010, 20:06
Re: [DUV] Checar se o player estб preso - by [NWD]Tweener_ - 05.06.2010, 20:19
Re: [DUV] Checar se o player estб preso - by (o)Trydon - 05.06.2010, 20:22
Re: [DUV] Checar se o player estб preso - by [BR]Michael - 06.06.2010, 04:32
Re: [DUV] Checar se o player estб preso - by SuB_ZeRo0_ - 06.06.2010, 12:35
Re: [DUV] Checar se o player estб preso - by [VGS]Protioso - 07.06.2010, 00:06

Forum Jump:


Users browsing this thread: 1 Guest(s)