5 mins not moving -> afk -> kick ?
#7

Example:
pawn Код:
forward AFK(playerid);
new AFKtimer;
pawn Код:
public OnPlayerPause(playerid)
{
    AFKtimer = SetTimerEx("AFK", 300000, 0, "i", playerid);
    return 1;
}
pawn Код:
public OnPlayerUnPause(playerid)
{
    KillTimer(AFKtimer);
    return 1;
}
pawn Код:
public AFK(playerid)
{
    if(IsPlayerPaused(playerid))
    {
        Kick(playerid);
        new string[128], playername[24];
        GetPlayerName(playerid, playername, 24);
        format(string, sizeof(string), "%s has been kicked for being AFK (away from keyboard) for more than 5 minutes", playername);
        SendClientMessageToAll(0xAFAFAFAA, string);
    }
    return 1;
}
Done
Reply


Messages In This Thread
5 mins not moving -> afk -> kick ? - by thimo - 02.01.2011, 09:48
Re: 5 mins not moving -> afk -> kick ? - by Jay. - 02.01.2011, 09:49
Re: 5 mins not moving -> afk -> kick ? - by TouR - 02.01.2011, 09:51
Re: 5 mins not moving -> afk -> kick ? - by Calgon - 02.01.2011, 09:59
Re: 5 mins not moving -> afk -> kick ? - by thimo - 02.01.2011, 10:12
Re: 5 mins not moving -> afk -> kick ? - by Calgon - 02.01.2011, 10:25
Re: 5 mins not moving -> afk -> kick ? - by Mean - 02.01.2011, 10:43
Re: 5 mins not moving -> afk -> kick ? - by Jochemd - 02.01.2011, 10:45
Re: 5 mins not moving -> afk -> kick ? - by Hiddos - 02.01.2011, 10:51

Forum Jump:


Users browsing this thread: 7 Guest(s)