[Q]Click on ESC..
#5

pawn Код:
new IsInMenu[MAX_PLAYERS];

public OnFilterScriptInit()
{
    SetTimer("MenuCheck", 1000, 1);
    return 1;
}

public OnPlayerConnect(playerid)
{
    IsInMenu[playerid] = 1;
    return 1;
}
forward MenuCheck();
public MenuCheck()
{
    for(new i;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsInMenu[playerid] == 0)
            {
                //player is in menu
            }
            IsInMenu[playerid] = 0;
        }
    }
}

public OnPlayerUpdate(playerid)
{
    IsInMenu[playerid] = 1;
    return 1;
}
Reply


Messages In This Thread
[Q]Click on ESC.. - by BombaNick - 09.01.2010, 11:51
Re: [Q]Click on ESC.. - by [HiC]TheKiller - 09.01.2010, 11:58
Re: [Q]Click on ESC.. - by dice7 - 09.01.2010, 12:09
Re: [Q]Click on ESC.. - by Correlli - 09.01.2010, 12:15
Re: [Q]Click on ESC.. - by dice7 - 09.01.2010, 12:32
Re: [Q]Click on ESC.. - by _Gangster_ - 09.01.2010, 14:03
Re: [Q]Click on ESC.. - by dice7 - 09.01.2010, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)