OnPlayerPause
#9

Quote:
Originally Posted by Scrip
Посмотреть сообщение
pawn Код:
forward pauseCheck(playerid);

new bool:bPaused[MAX_PLAYERS];

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

public pauseCheck(playerid)
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(bPaused[i]) SetPlayerChatBubble(playerid, "Paused", 0xFF0000FF, 100.0, 1000);
            SetPlayerFacingAngle(playerid,273.2784);
            SetPlayerPos(playerid,-2673.5120,1410.2698,907.5703);
            SetPlayerInterior(playerid,3);
            bPaused[i] = true;
        }
    }
    return 1;
}

public OnPlayerUpdate(playerid)
{
    bPaused[playerid] = false;
    return 1;
}
ITS DOSENT WORK !

I have
pawn Код:
public pauseCheck(playerid)
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(bPaused[i]) SetPlayerChatBubble(playerid, "Paused", 0xFF0000FF, 100.0, 1000);
            GetPlayerPos(playerid,AFKX,AFKY,AFKZ);
            SetPlayerFacingAngle(playerid,273.2784);
            SetPlayerPos(playerid,-2673.5120,1410.2698,907.5703);
            SetPlayerInterior(playerid,3);
            SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid) + 123);
            Away[ playerid ] = Create3DTextLabel("{33FF66}I'm AFK,{FF3300} sorry ! {6633FF}Don't shoot me .",-1,30.0,40.0,50.0,40.0,0);
            Attach3DTextLabelToPlayer( Away[ playerid ], playerid, 0.0, 0.0, 0.7);
            bPaused[i] = true;
        }
    }
    return 1;
}
There nametag working . I need if you came back , your message on head go away and that, if you press ESC you go to interior . and if you came back, then you came back .
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: 2 Guest(s)