SA-MP Forums Archive
Hide HUD bar the uppercase. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hide HUD bar the uppercase. (/showthread.php?tid=418322)



Hide HUD bar the uppercase. - Aarab - 24.02.2013

Hello,

I have hide the HUD bar, but still want to hide the uppercase in the name how is that possible?

I have this for now:

Код:
ShowNameTags(false);
    new playername2[24];
	new name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, name, sizeof(name));
	format(playername2, sizeof(playername2), "%s", name);
	new Text3D:attachplayername = Create3DTextLabel(playername2, COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
	Attach3DTextLabelToPlayer(attachplayername, playerid, 0.0,0.0,0.2);



Re: Hide HUD bar the uppercase. - Aarab - 24.02.2013

Bumper.


Re: Hide HUD bar the uppercase. - Misiur - 24.02.2013

You can bump after 12 hours without replies, not 7 minutes. I can't understand anything you want in first post, so I can't help you


Re: Hide HUD bar the uppercase. - Aarab - 24.02.2013

I have removed the nametag, and placed a textlabel above every member with the name.

Example:
Peter_Griffin

What I want:
Peter Griffin


Re: Hide HUD bar the uppercase. - Misiur - 24.02.2013

It's called underscore. Also I've got deja vu answering to this question

pawn Код:
[code]
ShowNameTags(false);
new name[MAX_PLAYER_NAME + 1];
GetPlayerName(playerid, name, sizeof(name));
for(new c = 0, l = strlen(name); c < l; ++c) {
    if('_' == name[c]) {
        name[c] = ' ';
        break;
    }
}
new Text3D:attachplayername = Create3DTextLabel(name, COLOR_WHITE, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(attachplayername, playerid, 0.0,0.0,0.2);



Re: Hide HUD bar the uppercase. - Aarab - 24.02.2013

Haha thanks Misiur, you are the best <3
Reputatioin is coming your way.