Name off won't work...
#2

Quote:
Originally Posted by killerx100
pawn Код:
//TOP of script
forward NameOff(playerid);
forward NameOn(playerid);


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



    if(strcmp(cmd,"/name",true)==0)
    {
    if(IsPlayerConnected(playerid))
    {
      new x_job[256];
            x_job = strtok(cmdtext, idx);
            if(!strlen(x_job)) {
                       SendClientMessage(playerid,COLOR_WHITE,"USAGE: /name ON/OFF");
                        return 1;
                          }

                 if(strcmp(x_job,"off",true) == 0)
              {
              NameOff(playerid);
                PlayerInfo[playerid][pTags] = 1;
                SendClientMessage(playerid,COLOR_LIGHTRED,"[Name] Your name tag has been hidden.");
                GameTextForPlayer(playerid, "~r~Showname off", 600, 1);
                }
               
                else if(strcmp(x_job,"on",true) == 0)
              {
              NameOn(playerid);
                PlayerInfo[playerid][pTags] = 0;
                SendClientMessage(playerid,COLOR_LIGHTRED,"[Name] Your name tag has been unhidden.");
                GameTextForPlayer(playerid, "~r~Showname on", 600, 1);
                }
    }
    return 1;
    }
Why name tag dissapeard only for a second ?

Reply


Messages In This Thread
Name off won't work... - by killerx100 - 07.05.2009, 16:16
Re: Name off won't work... - by miokie - 07.05.2009, 16:28
Re: Name off won't work... - by killerx100 - 07.05.2009, 16:30
Re: Name off won't work... - by *ToM* - 07.05.2009, 16:31
Re: Name off won't work... - by HB - 07.05.2009, 16:34
Re: Name off won't work... - by killerx100 - 07.05.2009, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)