OnPlayerPause
#1

pawn Код:
public OnPlayerPause(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    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);
    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);
    printf("ID %d paused the game.", playerid);
    return 0;
}
//-------------------------------------------------------------
public OnPlayerUnPause(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    Delete3DTextLabel( Away[ playerid ] );
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,AFKX,AFKY,AFKZ);
    SetPlayerVirtualWorld(playerid, 0);
    printf("ID %d unpaused the game.", playerid);
    return 0;
}

I use :
new Text3D:Away[ MAX_PLAYERS ];
1)It the code . First i need, how i can text, when player press ESC . I wan't the text over the head .

2)If player press ESC, he go in interior . That work but, if i stay in 1 place, he teleport me to interior. How i can fix that ?

Sry for my bad english .
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)