Y_Less
public text v1 · immutablepublic OnPlayerText(playerid, const text[])
{
new str[48];
GetPlayerName(playerid, str, sizeof (str));
format(str, sizeof (str), "%s: %s", str, text);
for (new i = 0; i < MAX_PLAYERS; i++)
{
if (player does want to get messages and is connected)
{
SendClientMessage(i, 0xFF0000FF, str);
}
}
return 0;
}