Help with OnPlayerText
#1

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:

Код:
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
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!
Reply


Messages In This Thread
Help with OnPlayerText - by Ercha - 01.01.2015, 21:58
Re: Help with OnPlayerText - by AndySedeyn - 01.01.2015, 22:03
Re: Help with OnPlayerText - by CalvinC - 01.01.2015, 22:38
Re: Help with OnPlayerText - by ATGOggy - 02.01.2015, 06:02

Forum Jump:


Users browsing this thread: 1 Guest(s)