[Help] /nameoff ?
#1

Код:
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?
Reply
#2

ShowPlayerNameTagForPlayer(a,playerid,false)
Reply
#3

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)
Reply
#4

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

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
Reply
#6

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)