29.07.2010, 16:39
how do i make it to where by defualt everything you type goes to your team mates? I use gTeam.
public OnPlayerText(playerid, text[])
{
for(new x=0; x!=MAX_PLAYERS; x++)
{
if(gTeam[x] == gTeam[playerid])
{
new str[128];
format(str, sizeof(str), "<TeamChat> %s: %s", pName(playerid), text);
SendClientMessage(playerid, 0xFAFFFF, str);
return 0;
}
}
return 1;
}