Name off
#2

Quote:
Originally Posted by killerx100
Hello there!
I'm using this command for name off but tags dissapeard only for one second:
Код:
if (strcmp(cmd, "/nameoff", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {

	 		if(PlayerInfo[playerid][pLevel] < 15)
	  	{
	   		SendClientMessage(playerid, COLOR_GRAD1, "You cannot use that command yet.");
	    	return 1;
	  	}
			for(new i = 0; i < MAX_PLAYERS; i++)
 			{
 		  	if(IsPlayerConnected(i))
 		  	{
		 		nameofftimer = ShowPlayerNameTagForPlayer(i, playerid, 0);
		 		
				}
			}
			PlayerInfo[playerid][pTags] = 1;
			SendClientMessage(playerid, COLOR_WHITE, "[TAGS] Your tags has been disabled");

		}
		return 1;
	}

	if(strcmp(cmd, "/nameon", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {

	  	if(PlayerInfo[playerid][pLevel] < 5)
	  	{
	    	SendClientMessage(playerid, COLOR_GRAD1, "You cannot use that command yet."");
	    	return 1;
	  	}
	  	for(new i = 0; i < MAX_PLAYERS; i++)
 			{
 		  	if(IsPlayerConnected(i))
 		  	{
		 			ShowPlayerNameTagForPlayer(i, playerid, 1);
				}
			}
			PlayerInfo[playerid][pTags] = 0;
			SendClientMessage(playerid, COLOR_WHITE, "[TAGS] Your tags has been enabled.");

		}
		return 1;
	}
Whats the problem?
Thanks
Reply


Messages In This Thread
Name off - by killerx100 - 30.03.2009, 13:11
Re: Name off - by killerx100 - 30.03.2009, 13:12
Re: Name off - by LarzI - 30.03.2009, 13:15
Re: Name off - by killerx100 - 30.03.2009, 13:16
Re: Name off - by killerx100 - 30.03.2009, 13:57
Re: Name off - by KingLollo - 30.03.2009, 15:01
Re: Name off - by LarzI - 30.03.2009, 15:58
Re: Name off - by Kinetic - 30.03.2009, 16:26
Re: Name off - by LarzI - 30.03.2009, 19:50
Re: Name off - by killerx100 - 01.04.2009, 10:35

Forum Jump:


Users browsing this thread: 1 Guest(s)