OnPlayerPause
#3

This is a nice and neat way:

pawn Код:
new bool:bPaused[MAX_PLAYERS];

public OnGameModeInit()
{
    SetTimer("pauseCheck", 1000, true);
    return 1;
}

public pauseCheck()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(bPaused[i]) SetPlayerChatBubble(playerid, "Paused", 0xFF0000FF, 100.0, 1000);
            //do your stuff hear
            bPaused[i] = true;
        }
    }
    return 1;
}

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


Messages In This Thread
OnPlayerPause - by Gertin - 06.03.2011, 13:33
Re: OnPlayerPause - by alpha500delta - 06.03.2011, 15:10
Re: OnPlayerPause - by Stigg - 06.03.2011, 15:13
Re: OnPlayerPause - by Gertin - 06.03.2011, 15:14
Re: OnPlayerPause - by Gertin - 06.03.2011, 15:45
Re: OnPlayerPause - by Stigg - 06.03.2011, 15:53
Re: OnPlayerPause - by Gertin - 06.03.2011, 17:23
Re: OnPlayerPause - by Scrip - 06.03.2011, 18:52
Re: OnPlayerPause - by Gertin - 06.03.2011, 18:53
Re: OnPlayerPause - by alpha500delta - 06.03.2011, 19:43
Re: OnPlayerPause - by Gertin - 07.03.2011, 14:56
Re: OnPlayerPause - by Davz*|*Criss - 07.03.2011, 15:08
Re: OnPlayerPause - by Gertin - 07.03.2011, 15:14
Re: OnPlayerPause - by Unknown123 - 07.03.2011, 15:15
Re: OnPlayerPause - by Davz*|*Criss - 07.03.2011, 15:16
Re: OnPlayerPause - by alpha500delta - 07.03.2011, 15:28
Re: OnPlayerPause - by Gertin - 07.03.2011, 20:03
Re: OnPlayerPause - by Stigg - 07.03.2011, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)