25.01.2010, 05:21
create 2 team chats i dont understand ?
agents and cops
new playerid_team = GetPlayerTeam(playerid);
for (new i = 0; i < MAX_PLAYERS; i++)
if (IsPlayerConnected(i) && GetPlayerTeam(i) == playerid_team)
SendPlayerMessageToPlayer(i, playerid, text);
return 0; //block the normal chat
}
agents and cops
new playerid_team = GetPlayerTeam(playerid);
for (new i = 0; i < MAX_PLAYERS; i++)
if (IsPlayerConnected(i) && GetPlayerTeam(i) == playerid_team)
SendPlayerMessageToPlayer(i, playerid, text);
return 0; //block the normal chat
}