01.01.2015, 21:58
Hello guys, I'm having a little problem in OnPlayerText.. The thing is, that when a player types something in the chat, his name should be in Team color. Like for example if he's in USA team, he's nick color must be blue and only the nickname, not also the rest of the text what he types..
Here's the pic how it looks at the moment: http://i.imgur.com/ozF7NlN.png
And the code:
Please give me a hint what do I have to change or add. I know it's very simple, but I always forget something..
Thanks!
Here's the pic how it looks at the moment: http://i.imgur.com/ozF7NlN.png
And the code:
Код:
new hours, minutes, seconds, str[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); gettime(hours, minutes, seconds); format(str,sizeof(str),"[%02d:%02d:%02d] %s [%d]: %s",hours,minutes,seconds,PlayerName(playerid),playerid,text); SendClientMessageToAll( -1, str); // return 0; // Returning 0
Thanks!