27.09.2009, 19:41
I think you f**ked up.
I'll fix your code and make it better:
The X, Y, Z are the OFFSET coordinates, not the real coordinates!
I'll fix your code and make it better:
pawn Код:
forward Text(playerid);
public Text(playerid)
{
if(!IsPlayerNPC(playerid))
return true;
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "YUGO", true))
{
new Text3D:text;
text = Create3DTextLabel("Jaz sem YUGO", GetPlayerColor(playerid), 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(text, playerid, 0.0, 0.0, 0.0);
}
}