03.05.2015, 15:27
Код:
GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s: %s", sendername, text); SendClientMessageToAll(playerid, string);
Код:
public OnPlayerText(playerid, text[]) { new string[256], Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name)); format(string, sizeof string,"{FFFFFF}%s{FFFFFF} [%d] %s", Name, playerid, text); SendClientMessageToAll(playerid, string); return 0; }