All pastes #162528 Raw Edit

Y_Less

public text v1 · immutable
·published 2006-09-06 16:45 UTC
rendered paste body
public 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;
}