Name off
#5

Now I made like that
pawn Код:
public NameOff(playerid)
{
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(i, playerid, 0);

                }
            }
            return 1;
  }
public NameOn(playerid)
{
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
            if(IsPlayerConnected(i))
            {
                ShowPlayerNameTagForPlayer(i, playerid, 1);

                }
            }
            return 1;
  }
pawn Код:
if (strcmp(cmd, "/nameoff", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {

            if(PlayerInfo[playerid][pLevel] < 5)
        {
                SendClientMessage(playerid, COLOR_GRAD1, " You are not able to use it.");
            return 1;
        }
            NameOff(playerid);
            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 are not able to use it.");
            return 1;
        }
            NameOn(playerid);
            PlayerInfo[playerid][pTags] = 0;
            SendClientMessage(playerid, COLOR_WHITE, "[TAGS] Your tags has been enabled.");

        }
        return 1;
    }
pawn Код:
SetTimer("NameOff",999999, 1);
Still won't dissapeard
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)