22.12.2012, 09:40
It doesn't need all the above when there is a function that returns the name with the color.
SendPlayerMessageToAll
SendPlayerMessageToAll
Quote:
Originally Posted by SA:MP Wiki
This function can be used to send a message from a player to everyone else player. The line will start with the sender's name in his color, followed by the message in white.
|
pawn Код:
public OnPlayerText(playerid, text[])
{
new output[128];
format(output, sizeof(output), "%s", text);
SendPlayerMessageToAll(playerid, output);
return 0;
}