[HELP] ID instead of name, remove ID from TAB - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] ID instead of name, remove ID from TAB (
/showthread.php?tid=144016)
[HELP] ID instead of name, remove ID from TAB -
Rasmus19 - 25.04.2010
How to display ID instead of name in game and under TAB remove ID ?
Re: [HELP] ID instead of name, remove ID from TAB -
Rasmus19 - 25.04.2010
I hope its possible
Re: [HELP] ID instead of name, remove ID from TAB -
Rasmus19 - 11.05.2010
BUMP
How to show only ID on top of player's head?
Re: [HELP] ID instead of name, remove ID from TAB -
iJumbo - 11.05.2010
you have to remove player tag and use 3dtext
Re: [HELP] ID instead of name, remove ID from TAB -
DJDhan - 11.05.2010
Under OnGamemodeInit()
Код:
ShowPlayerNameTag(playerid,0);
Then use TextDrawCreate and TextDrawSetString to show id on the head by using GetPlayerPos and increasing the position of the text draw's Z coordinate by say 3.
This will help:
TextDrawCreate
TextDrawSetString
Re: [HELP] ID instead of name, remove ID from TAB -
[MWR]Blood - 11.05.2010
Quote:
|
Originally Posted by DJDhan
Under OnGamemodeInit()
Код:
ShowPlayerNameTag(playerid,0);
Then use TextDrawCreate and TextDrawSetString to show id on the head by using GetPlayerPos and increasing the position of the text draw's Z coordinate by say 3.
This will help:
TextDrawCreate
TextDrawSetString
|
With 3D Labels is easier
https://sampwiki.blast.hk/wiki/Category:...3D_Text_Labels
Re: [HELP] ID instead of name, remove ID from TAB -
DJDhan - 11.05.2010
Oh yeah my bad :P
I was scripting in my server and accidently I told to use TextDraw
Re: [HELP] ID instead of name, remove ID from TAB -
Rasmus19 - 11.05.2010
Yeah I got 3D text on player head but I don't quite understand how to add ID now
Mind giving me a few more pointers? :P
Re: [HELP] ID instead of name, remove ID from TAB -
Mikep. - 11.05.2010
pawn Код:
new labeltext[4];
format(labeltext, sizeof(labeltext), "%i", playerid);
Create3DTextLabel(...);
Attach3DTextLabelToPlayer(...);
Under OnPlayerConnect.
Re: [HELP] ID instead of name, remove ID from TAB -
DJDhan - 11.05.2010
I think it is better to add it under OnPlayerSpawn.