Create3DTextLabel over head
#3

pawn Код:
// Top of the script
  Text3D: AFKPlayer[MAX_PLAYERS],

//Where ever needed
AFKPlayer[playerid] = Create3DTextLabel("Away from keyboard", 0xFFFFFFFF, 0.0, 0.0, 2.0, 40, 0, 0);
            Attach3DTextLabelToPlayer(AFKPlayer[playerid], playerid, 0.0, 0.0, 0.4);
I use this for my AFK script and works great,

pawn Код:
// Top of the script under the includes
new PlayerText3D:playertextid;

// Where needed
        new Float:X, Float:Y, Float:Z;
        GetPlayerPos( playerid, X, Y, Z );
        playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);
        SendClientMessage(playerid, 0xFFFFFFFF, "You are being followed!");
Though this would work better.
Reply


Messages In This Thread
Create3DTextLabel over head - by Ballu Miaa - 30.01.2012, 05:24
Re: Create3DTextLabel over head - by Ballu Miaa - 30.01.2012, 07:10
Re: Create3DTextLabel over head - by suhrab_mujeeb - 30.01.2012, 07:17

Forum Jump:


Users browsing this thread: 1 Guest(s)