09.03.2010, 06:29
Hello. I would like to do over the heads of players showed up player nickname, but I made that, as I leave the interior is still a nickname will be visible to all. Please help me
new
Text3D:PlayerLabel[ MAX_PLAYERS ];
public OnPlayerSpawn(playerid)
{
Delete3DTextLabel(PlayerLabel[playerid]);
PlayerLabel[playerid] = Create3DTextLabel(PlayerName(playerid), 0x008080FF, 0.0, 0.0, 0.0 , 40.0, GetPlayerVirtualWorld(playerid), 0);
Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 1.0);
return 1;
}