SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 11/04/2009, 05:09 PM   #1
cicc
Little Clucker
 
Join Date: Apr 2009
Posts: 5
Reputation: 0
Default Name tags

Hi!

I have an RP mode (No, its not GF. ) and I have a little problem with name tags.

The first thing is to hide each player's name tag. I don't know which function I should use.

The second thing is a command for admins ( /showname ). If an (rcon) admin type that command, he will be able to see the name tags. And if he type that command again, the name tags will be again in hide.

I can't solve these problems, so please help me.
Thank you.
cicc is offline  
Old 11/04/2009, 06:24 PM   #2
member
Huge Clucker
 
Join Date: Sep 2007
Posts: 365
Reputation: 0
Default Re: Name tags


To hide all player's nametags:
http://wiki.sa-mp.com/wiki/ShowNameTags

The command for admins:
http://wiki.sa-mp.com/wiki/ShowPlayerNameTagForPlayer
(add IsPlayerAdmin) to that for RCON admins.

I think if you disable ShowNameTags under OnGameModeInit, then ShowPlayerNameTagForPlayer function will not work, not sure.
member is offline  
Old 11/04/2009, 06:29 PM   #3
Danut
Gangsta
 
Join Date: Aug 2008
Posts: 534
Reputation: 0
Default Re: Name tags

Quote:
Originally Posted by [B2K
Hustler ]

To hide all player's nametags:
http://wiki.sa-mp.com/wiki/ShowNameTags

The command for admins:
http://wiki.sa-mp.com/wiki/ShowPlayerNameTagForPlayer
(add IsPlayerAdmin) to that for RCON admins.

I think if you disable ShowNameTags under OnGameModeInit, then ShowPlayerNameTagForPlayer function will not work, not sure.
Where did say it's just for RCON ADMINS , ROFL !?
Danut is offline  
Old 11/04/2009, 06:52 PM   #4
cicc
Little Clucker
 
Join Date: Apr 2009
Posts: 5
Reputation: 0
Default Re: Name tags

Sorry for double posting.
cicc is offline  
Old 11/04/2009, 06:54 PM   #5
cicc
Little Clucker
 
Join Date: Apr 2009
Posts: 5
Reputation: 0
Default Re: Name tags

I made this command, but if I type it, the name tag become hidden for a second, but after it will be the same again.

This is the command:

Code:
new ShowNames[MAX_PLAYERS];

if(strcmp(cmd, "/showname", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(ShowNames[playerid] == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, true);
}
ShowNames[playerid] = 1;
SendClientMessage(playerid, COLOR_GRAD1, "Name tags enabled.");
}
else if(ShowNames[playerid] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(playerid, i, false);
}
ShowNames[playerid] = 0;
SendClientMessage(playerid, COLOR_GRAD1, "Name tags disabled.");
}
}
return 1;
}
Please help!
cicc is offline  
Old 12/04/2009, 08:39 AM   #6
cicc
Little Clucker
 
Join Date: Apr 2009
Posts: 5
Reputation: 0
Default Re: Name tags

Nobody can help?
cicc is offline  
Old 14/04/2009, 04:53 PM   #7
cicc
Little Clucker
 
Join Date: Apr 2009
Posts: 5
Reputation: 0
Default Re: Name tags

...
cicc is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[INC+FS] Spray Tags Rafelder_GRF Filterscripts 37 15/06/2014 11:02 PM
Need help with name Tags and Map Blips Jeroen52 Help Archive 13 12/02/2011 10:42 PM
Name Tags Antonio [G-RP] Help Archive 31 06/08/2009 10:10 PM
Name Tags. NEW_IE Help Archive 1 06/05/2009 06:39 AM


All times are GMT. The time now is 07:22 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.