25.04.2012, 21:47
here is what i meant
now you wont cut the name and even use inline colors if you like to stand out.
pawn Код:
public OnPlayerText(playerid, text[])
{
if(PlayerInfo[playerid][pAdmin] >= 1) //Change to your admin variable
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof (name));
format(str, sizeof (str), "[ADMIN]%s: %s", name, text);
SendClientMessageToAll( -1, str);
return 0; // ignore the default text and send the custom one
}
//all other players will just send as normal...
return 1;
}