16.04.2012, 18:16
Hello! I was wanting a 3D label that says the players ID due to I have the Tags Off so name tags are not visible so i was wanting a 3D label with that players ID. If anyone does that, I will +Rep Thanks!
public OnPlayerSpawn(playerid) { new string[128], Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); format(string, sizeof(string), "Playerid: %d", playerid); Create3DTextLabel(string, COLOR_WHITE, X, Y, Z, 10, 0); return 1; }
This will create a 3D text label once a player spawns.
Код:
public OnPlayerSpawn(playerid) { new string[128], Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); format(string, sizeof(string), "Playerid: %d", playerid); Create3DTextLabel(string, COLOR_WHITE, X, Y, Z, 10, 0); return 1; } |