27.10.2018, 20:07
Try this:
pawn Код:
public OnPlayerText(playerid, text[])
{
new message[128];
if(PlayerInfo[playerid][pAdminDuty] == 1)
{
format(message, sizeof(message), "%s (( %s ))", GetName(playerid), text);
ProxDetector(30.0, playerid, message, COLOR_ORANGE);
}
else
{
format(message, sizeof(message), "%s says: %s", GetName(playerid), text);
ProxDetector(30.0, playerid, message, -1);
}
return 0; //To stop the original message.
}