[Ayuda] Anti AFK NPC
#10

Usб este cуdigo:

pawn Код:
public IdleKick()
{

    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
          if(PlayerInfo[i][pAdmin] < 1 && !IsPlayerNPC(playerid))
          {
                GetPlayerPos(i, PlayerPos[i][0], PlayerPos[i][1], PlayerPos[i][2]);
                if(PlayerPos[i][0] == PlayerPos[i][3] && PlayerPos[i][1] == PlayerPos[i][4] && PlayerPos[i][2] == PlayerPos[i][5])
                {
                    new plname[64];
                    new string[128];
                    GetPlayerName(i, plname, sizeof(plname));
                    format(string, sizeof(string), "Server: %s has sido kickeado del servidor, Razon: AFK", plname);
                    SendClientMessageToAll(COLOR_LIGHTRED, string);
                    Kick(i);
                }
                PlayerPos[i][3] = PlayerPos[i][0];
                PlayerPos[i][4] = PlayerPos[i][1];
                PlayerPos[i][5] = PlayerPos[i][2];
            }
        }
    }
}
Reply


Messages In This Thread
[Ayuda] Anti AFK NPC - by Andres_Garcia - 30.04.2010, 02:43
Re: [Ayuda] Anti AFK NPC - by TheChaoz - 30.04.2010, 02:56
Re: [Ayuda] Anti AFK NPC - by wylly - 30.04.2010, 23:29
Re: [Ayuda] Anti AFK NPC - by Andres_Garcia - 30.04.2010, 23:51
Re: [Ayuda] Anti AFK NPC - by Andres_Garcia - 07.05.2010, 06:39
Re: [Ayuda] Anti AFK NPC - by Miguel - 08.05.2010, 04:05
Re: [Ayuda] Anti AFK NPC - by Andres_Garcia - 08.05.2010, 20:07
Re: [Ayuda] Anti AFK NPC - by Cesar_Biker - 08.05.2010, 21:09
Re: [Ayuda] Anti AFK NPC - by Andres_Garcia - 09.05.2010, 00:11
Re: [Ayuda] Anti AFK NPC - by Zamaroht - 09.05.2010, 00:26

Forum Jump:


Users browsing this thread: 1 Guest(s)