SA-MP Forums Archive
[Help] /nameoff ? - 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] /nameoff ? (/showthread.php?tid=111039)



[Help] /nameoff ? - skaTim - 29.11.2009

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp(cmdtext, "/nameoff", true) == 0)
	{
		if (PlayerInfo[playerid][pLevel] >= 10)
		{
		for(new a=0; a<MAX_PLAYERS; a++)
		{
		ShowPlayerNameTagForPlayer(playerid, a, false);
		}
		SendClientMessage(playerid,COLOR_YELLOW,"[INFORMATION] Your name tag has been hidden.");
		PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
		return 1;
		}
	}
	if(strcmp(cmdtext, "/nameon", true) == 0)
	{
		if (PlayerInfo[playerid][pLevel] >= 10)
		{
		for(new a=0; a<MAX_PLAYERS; a++)
		{
		ShowPlayerNameTagForPlayer(playerid, a, true);
		}
		SendClientMessage(playerid,COLOR_YELLOW,"[INFORMATION] Your name tag is now visible.");
		PlayerPlaySound(playerid, 1132, 0.0, 0.0, 0.0);
		return 1;
		}
	}
return 1;
}
When i do /nameoff it turns the other players name off, any help?


Re: [Help] /nameoff ? - yezizhu - 29.11.2009

ShowPlayerNameTagForPlayer(a,playerid,false)


Re: [Help] /nameoff ? - Mowgli - 29.11.2009

This name off system is very dodgey...If you cannot get this working i can make a 100% working one for u..

add xfire: mowgli2k7

(P.S.I need a small ammount of cash as im working as scripter to help fund for my game im making)


Re: [Help] /nameoff ? - skaTim - 29.11.2009

Thanks Yezizhu ! It's works great !
-and how can change the walk/run style ?
Код:
UsePlayerPedAnims();
?


Re: [Help] /nameoff ? - radi - 29.11.2009

Quote:
Originally Posted by skaTim
Thanks Yezizhu ! It's works great !
-and how can change the walk/run style ?
Код:
UsePlayerPedAnims();
?
yes then every skin will walk otherwise
if you dont have that it will be cj walk


Re: [Help] /nameoff ? - skaTim - 29.11.2009

Quote:
Originally Posted by radi
Quote:
Originally Posted by skaTim
Thanks Yezizhu ! It's works great !
-and how can change the walk/run style ?
Код:
UsePlayerPedAnims();
?
yes then every skin will walk otherwise
if you dont have that it will be cj walk
I have it under gamemodeinit...but In-Game it still walk/run like CJ....any help?