23.03.2015, 03:57
I use ZCMD
if prefix = 1 then use your noraml message
Код:
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); } }