20.11.2013, 12:38
Your SendClientMessageToAll syntax is wrong.
If you're sending a message to everyone, you shouldn't require a playerid. The string color goes where you wrote "playerid". I think -1 means white but I'm not sure.
Check this out:
https://sampwiki.blast.hk/wiki/Function:...ntMessageToAll
If you're sending a message to everyone, you shouldn't require a playerid. The string color goes where you wrote "playerid". I think -1 means white but I'm not sure.
Check this out:
https://sampwiki.blast.hk/wiki/Function:...ntMessageToAll
pawn Код:
public OnPlayerText(playerid, text[])
{
new playertext[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(playertext, sizeof(playertext), "[%d]%s: {FFFFFF}%s", playerid, name, text);
SendClientMessageToAll(-1, playertext);
return 0;
}