SA-MP Forums Archive
Nick names over the heads of the player - 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: Nick names over the heads of the player (/showthread.php?tid=132707)



Nick names over the heads of the player - MrLeNy - 09.03.2010

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


Re: Nick names over the heads of the player - cessil - 09.03.2010

do you mean a custom 3Dtext label?


Re: Nick names over the heads of the player - Torran - 09.03.2010

What do you mean?

Do you mean you want to turn of player names above there heads?
If so then:

https://sampwiki.blast.hk/wiki/ShowNameTags

Put: ShowNameTags(0);

Under OnGameModeInit/OnFilterScriptInit


Re: Nick names over the heads of the player - MrLeNy - 09.03.2010

so he wants to do in Create3DTextLabel, could someone explain to me how well you do it?


Re: Nick names over the heads of the player - Zimon95 - 09.03.2010

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer there is an example in the page.


Re: Nick names over the heads of the player - MrLeNy - 09.03.2010

but how did the creation and OnPlayerSpawn Attach the nicknames I OnPlayerUpdate is blinking or not to show: (


Re: Nick names over the heads of the player - [MWR]Blood - 09.03.2010

Sorry, I didn't understand what u mean.Can you give more info?


Re: Nick names over the heads of the player - MrLeNy - 09.03.2010

Nicki wants to do over the heads of players on my server RP. I create the OnPlayerSpawn Create3dTextLabel then do OnPlayerUpdate Attach and flash my nicknames, or do not show. How do I fix this?


Re: Nick names over the heads of the player - woot - 09.03.2010

Post the code if you'd like proper help.

Something like that?
pawn Код:
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;
}



Re: Nick names over the heads of the player - Torran - 09.03.2010

No,

Lol, He has RP gamemode,
And he wants player names above there heads,
so in OnGameModeInit he puts ShowNameTags(1);