[HELP] ID instead of name, remove ID from TAB
#1

How to display ID instead of name in game and under TAB remove ID ?
Reply
#2

I hope its possible
Reply
#3

BUMP

How to show only ID on top of player's head?
Reply
#4

you have to remove player tag and use 3dtext
Reply
#5

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


Reply
#6

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
Reply
#7

Oh yeah my bad :P
I was scripting in my server and accidently I told to use TextDraw
Reply
#8

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
Reply
#9

pawn Код:
new labeltext[4];
format(labeltext, sizeof(labeltext), "%i", playerid);
Create3DTextLabel(...);
Attach3DTextLabelToPlayer(...);
Under OnPlayerConnect.
Reply
#10

I think it is better to add it under OnPlayerSpawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)