Name Tags. - 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: Name Tags. (
/showthread.php?tid=76739)
Name Tags. -
NEW_IE - 06.05.2009
Okay I made it so people from certain factions can take off their name tags. But its a problem for admins. Is there anyway to make it so Admins can see everyone's name tag even if they turn it off?
My idea didn't work it just showed my nametag when I wanted to turn it off.
Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 0);
}
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
}
Re: Name Tags. -
pen_theGun - 06.05.2009
pawn Код:
public OnGameModeInit( )
{
ShowNameTags( 1 );
}
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ) )
{
if( PlayerInfo[ i ][ pAdmin ] >= 1 )
ShowPlayerNameTagForPlayer( i, playerid, 1 );
else ShowPlayerNameTagForPlayer( i, playerid, 0 );
}
}