25.01.2012, 10:55
Hello,so i've this code:
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?
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;
}
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?