Check AFK Player
#2

In case checking for /afklist
PHP Code:
new AFK[MAX_PLAYERS];
for(new 
0iMAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
AFK[i] == 1
in-case like not allowind to chat or already afk
PHP Code:
new AFK [MAX_PLAYERS];
if(
AFK[playerid] == 1)
    {
        return 
GameTextForPlayer(playerid"You are already in AFK. Use /back",3000,3);
    } 
Reply


Messages In This Thread
Check AFK Player - by Manowar - 20.02.2013, 07:27
Re: Check AFK Player - by M3mPHi$_S3 - 20.02.2013, 15:46
Re: Check AFK Player - by Manowar - 05.03.2013, 03:17
Re: Check AFK Player - by Marco_Valentine - 05.03.2013, 03:25
Re: Check AFK Player - by RajatPawar - 05.03.2013, 05:52
Re: Check AFK Player - by PaulDinam - 05.03.2013, 06:36
Re: Check AFK Player - by Jewell - 05.03.2013, 07:27
Re: Check AFK Player - by Vegas. - 05.03.2013, 09:27
Re: Check AFK Player - by RajatPawar - 05.03.2013, 11:43

Forum Jump:


Users browsing this thread: 1 Guest(s)