23.08.2010, 09:43
How do I make playerid show when player sends a message?
I was trying to make it like this:
It only shows playerid and a message. But it has to be: Player name [player id] message
Like: AivaMan [0]: hello world.
Any other ideas?
I was trying to make it like this:
pawn Код:
public OnPlayerText(playerid, text[])
{
new output[256];
format(output, sizeof(output), "[%d] %s", playerid, text);
SendClientMessageToAll(COLOR_WHITE, output);
return 0;
}
Like: AivaMan [0]: hello world.
Any other ideas?