16.06.2013, 15:37
ive got it set so when you type normal text, it sends to your team, but for some reason, it also sends globally, and I cant understand that because it returns 0 like it should
here is the command
I also get no errors or warnings.
here is the command
pawn Код:
public OnPlayerText(playerid, text[])
{
new message[128];
format(message, sizeof(message), "[Team Chat] %s {%d}: %s", GetName(playerid), playerid, text);
foreach (new i : Player)
{
if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
SCM(i, COLYELLOW, message);
return 1;
}
}
return 0; //should stop the problem, no?
}