[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


Messages In This Thread
[Help] /nameoff ? - by skaTim - 29.11.2009, 14:15
Re: [Help] /nameoff ? - by yezizhu - 29.11.2009, 14:21
Re: [Help] /nameoff ? - by Mowgli - 29.11.2009, 14:28
Re: [Help] /nameoff ? - by skaTim - 29.11.2009, 14:29
Re: [Help] /nameoff ? - by radi - 29.11.2009, 14:46
Re: [Help] /nameoff ? - by skaTim - 29.11.2009, 14:48

Forum Jump:


Users browsing this thread: 1 Guest(s)