Player color
#5

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

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;
}
Reply


Messages In This Thread
Player color - by iOxide - 20.11.2013, 11:54
Re: Player color - by Vince - 20.11.2013, 12:01
Re: Player color - by iOxide - 20.11.2013, 12:15
Re: Player color - by newbie scripter - 20.11.2013, 12:29
Re: Player color - by InglewoodRoleplay - 20.11.2013, 12:38
Re: Player color - by iOxide - 20.11.2013, 12:39
Re: Player color - by -Prodigy- - 20.11.2013, 13:18
Re: Player color - by iOxide - 20.11.2013, 14:34

Forum Jump:


Users browsing this thread: 1 Guest(s)