19.05.2014, 07:48
Just replace this -1 with some other hexadecimal color code!
This is a sample of red!
Try this.. Is this what you were asking?
Working?
This is a sample of red!
Try this.. Is this what you were asking?
pawn Код:
public OnPlayerText(playerid, text[])
{
if(IsPlayerAdmin(playerid))
{
new pName[MAX_PLAYER_NAME], String[128];
GetPlayerName(playerid, pName, 24);
format(String, sizeof(String), "[Admin] %s: %s", pName, text);
SendClientMessageToAll(0xFF0000FF,String); //-1 to replace with hexdecimal color code, here now its red.. try it
return 0;
}
return 1;
}