command to hide admin prefix
#2

I use ZCMD

Код:
new HidePrefix[MAX_PLAYERS];

CMD:hide(playerid,params[])
{
        HidePrefix[playerid] = 1;
 	return 1;
}

public OnPlayerText(playerid,text[])
{
      if(PlayerInfo[playerid][pAdmin] == 1 && HidePrefix[playerid] == 0)
     {

        new pname[MAX_PLAYER_NAME], string2[560 + MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string2, sizeof(string2), "[Admin] %s: %s", pname, text);
        SendClientMessageToAll(COLOR_WHITE, string2);
     }
}
if prefix = 1 then use your noraml message
Reply


Messages In This Thread
command to hide admin prefix - by pitchooo - 23.03.2015, 03:50
Re: command to hide admin prefix - by Nabster - 23.03.2015, 03:57
Re: command to hide admin prefix - by SickAttack - 23.03.2015, 04:57
Re: command to hide admin prefix - by pitchooo - 24.03.2015, 03:23

Forum Jump:


Users browsing this thread: 1 Guest(s)