OnPlayerText
#1

Hello,so i've this code:

pawn Code:
public OnPlayerText(playerid, text[])
{
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 5000);
    if(gTeam[playerid] == COP)
    {
        SendClientMessageToAll(lightblue, text);
    }

    if(gTeam[playerid] == CIV)
    {
        SendClientMessageToAll(white, text);
    }
    return 1;
}
I've 1 code and 2 problems.

1st: It sends double messages like in this screen: http://i41.tinypic.com/js1xlx.jpg

2nd: It doesn't show the right team color.For COP team is Lightblue,for CIV team is White.Both team it sends lightblue.

What's wrong?
Reply


Messages In This Thread
OnPlayerText - by Face9000 - 25.01.2012, 10:55
Re: OnPlayerText - by James Coral - 25.01.2012, 10:57
Re: OnPlayerText - by Face9000 - 25.01.2012, 11:02
Re: OnPlayerText - by MasterJoker - 25.01.2012, 11:05
Re: OnPlayerText - by Unte99 - 25.01.2012, 11:12
Re: OnPlayerText - by Face9000 - 25.01.2012, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)