Formatting
#1

Im using 3d text name tags:
pawn Code:
public OnPlayerSpawn(playerid)
{
new nameformat[30];
new Text3D:playertextid;

SetPlayerColor(playerid,COLOR_WHITE);
new plname2[MAX_PLAYER_NAME];
new Float:X, Float:Y, Float:Z;
GetPlayerName(playerid, plname2, sizeof(plname2));
GetPlayerPos(playerid,X,Y,Z);
format(nameformat,sizeof(nameformat),"%s (%d, %dh)",plname2,playerid,PlayerInfo[playerid][pH]);
playertextid = Create3DTextLabel(nameformat,COLOR_WHITE,X,Y,Z+0.13,15,0,0);
Update3DTextLabelText(playertextid,COLOR_WHITE,nameformat);
Attach3DTextLabelToPlayer(playertextid, playerid, 0.0, 0.0, 0.13);
}
How can I reformat the name text when you type a command, for example /afk
pawn Code:
if(strcmp(cmd, "/afk", true) == 0)
    {

    }
I want that command to change that original text from
format(razem,sizeof(razem),"%s (%d, %dh)",plname2,playerid,PlayerInfo[playerid][pH]);

to:
format(razem,sizeof(razem),"%s (%d, %dh)\n(AFK)",plname2,playerid,PlayerInfo[playerid][pH]);
Reply


Messages In This Thread
Need help with this - by HondaCBR - 28.12.2011, 23:51
Re: Formatting - by HondaCBR - 29.12.2011, 07:49
Re: Formatting - by Seven_of_Nine - 29.12.2011, 08:26
Re: Formatting - by HondaCBR - 29.12.2011, 08:59
Re: Formatting - by Seven_of_Nine - 29.12.2011, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)