SA-MP Forums Archive
how to.... - 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: how to.... (/showthread.php?tid=276954)



how to.... - timaoux - 15.08.2011

how to getplayername in a 3DTextLabel ?


Re: how to.... - Wesley221 - 15.08.2011

pawn Код:
new name[24], string[128];
GetPlayerName(playerid, name, 24);
format(string, sizeof string, "Name: %s(%s) Wanted level: %d", name, playerid, GetPlayerWantedLevel(playerid));
Create3DTextLabel(string, -1, 0, 0, 0, 50, 0, 0);
https://sampwiki.blast.hk/wiki/Create3DTextLabel
This will do it i think