[HELP] NAMETAGS - 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: [HELP] NAMETAGS (
/showthread.php?tid=177305)
[HELP] NAMETAGS -
suwithy04 - 17.09.2010
Hello , I need our help
Do anyone know how can i make a command that can make anyone hide his nametags himself
... not the other nametags like ShowNameTags
I need to use it for one of the Government's Secret team ....
and it need to input this function too
.... Thank you ^^
Re: [HELP] NAMETAGS -
Shelby - 17.09.2010
Try it:
pawn Код:
if(strcmp(cmd, "/mycommand", true) == 0)
{
if(IsPlayerConnected(playerid)){for(new i = 0; i < MAX_PLAYERS; i++){if(IsPlayerConnected(i)){ShowPlayerNameTagForPlayer(playerid, i, 0);}}}
return 1;
}
or:
pawn Код:
if(strcmp(cmd, "/mycommand", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, i, 0);
}
}
}
return 1;
}
ShowPlayerNameTagForPlayer - SAMP WIKI
Re: [HELP] NAMETAGS -
Hiddos - 17.09.2010
https://sampwiki.blast.hk/wiki/ShowPlayerNameTagForPlayer
Might help you :P
Re: [HELP] NAMETAGS -
suwithy04 - 17.09.2010
ShowPlayerNameTagForPlayer is "The player who typed the command will not be able to see any other players nametag". ...... but the one i need is "The player who typed the command will have no one can see his nametag."
Re: [HELP] NAMETAGS -
Vince - 17.09.2010
Then use:
ShowPlayerNameTagForPlayer(i, playerid, 0); with the code supplied above.
Re: [HELP] NAMETAGS -
suwithy04 - 17.09.2010
Thank you for your help ^^
Re: [HELP] NAMETAGS -
suwithy04 - 17.09.2010
Wait a minute ..........................
When i inputed the code ............. It is only work for a second ......
Why is it?
And How can i fix it?
Thank you
Re: [HELP] NAMETAGS -
Sky4D - 17.09.2010
Quote:
Originally Posted by suwithy04
Wait a minute ..........................
When i inputed the code ............. It is only work for a second ......
Why is it?
And How can i fix it?
Thank you
|
pawn Код:
new NameTags[MAX_PLAYERS] = 0;
if(strcmp(cmd, "/mycommand", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
ShowPlayerNameTagForPlayer(playerid, i, 0);
NameTags[playerid] = 1;
}
}
}
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
if(NameTags[playerid] == 1) {
ShowPlayerNameTagForPlayer(forplayerid, playerid, 0);
}
return 1;
}