[Pedido] Anti AFK
#5

pawn Код:
new giveplayerid, Float:pX[MAX_PLAYERS],    Float:pY[MAX_PLAYERS]Float:pZ[MAX_PLAYERS];

    CMD:esc(playerid, params[])
    {
        if(sscanf(params,"i", giveplayerid))
            return SendClientMessage(playerid, -1,"[ERRO]: Correto: /Esc [ID]"),SendClientMessage(playerid, -1 -1,"[INFO]: Este comando denuncia player que estб de Esc.");

        GetPlayerPos(playerid, Float:pX[playerid], Float:pY[playerid], Float:pZ[playerid]);
        SetTimerEx("PlayerInUseEsc", 70000,false,"d", giveplayerid);
        return 1;
    }
   
   
   
   
forward PlayerInUseEsc(playerid);
public PlayerInUseEsc(playerid)
{
    new
        Float:_X, Float:_Y, Float:_Z;
    GetPlayerPos(playerid, _X, _Y, _Z);

    if(_X != pX[playerid] && _Y != pY[playerid] && _Z != pZ[playerid])  return Kick(playerid);
    return 0;
}
fiz agora =)
Reply


Messages In This Thread
[Pedido] Anti AFK - by IILeonII - 04.10.2011, 19:59
Re: [Pedido] Anti AFK - by Pharrel - 04.10.2011, 20:35
Re: [Pedido] Anti AFK - by Vai_Besta - 04.10.2011, 20:45
Re: [Pedido] Anti AFK - by Pharrel - 04.10.2011, 20:48
Re: [Pedido] Anti AFK - by [O.z]Caroline - 04.10.2011, 20:50
Re: [Pedido] Anti AFK - by Pharrel - 04.10.2011, 20:54
Re: [Pedido] Anti AFK - by [O.z]Caroline - 04.10.2011, 21:06
Re: [Pedido] Anti AFK - by IILeonII - 05.10.2011, 00:51
Re: [Pedido] Anti AFK - by Pharrel - 05.10.2011, 00:59
Re: [Pedido] Anti AFK - by [O.z]Caroline - 05.10.2011, 01:10

Forum Jump:


Users browsing this thread: 1 Guest(s)