How can I fix that
#4

https://github.com/emmet-jones/New-SA-MP-callbacks

pass your code through the forward OnPlayerPause
create a new variable say afk
so,

Код:
new afk[MAX_PLAYER];
public OnPlayerPause(playerid)
{
    afk[playerid]=1;
}

public OnPlayerResume(playerid, time)
{
    afk[playerid]=0;
}


public OnPlayerSpawn(playerid)
{
    if(afk[playerid]==1)
        {
            //your code here for paused player
        }
    else
        {
             //not paused player
         }
}
Reply


Messages In This Thread
How can I fix that - by None1337 - 27.01.2018, 15:58
Re: How can I fix that - by Sew_Sumi - 27.01.2018, 16:07
Re: How can I fix that - by None1337 - 27.01.2018, 16:08
Re: How can I fix that - by iSteve - 27.01.2018, 16:41
Re: How can I fix that - by Sew_Sumi - 27.01.2018, 21:31
Re: How can I fix that - by RogueDrifter - 27.01.2018, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)