rendered paste bodypublic OnPlayerText(playerid, text[]) {
new tmp[MAX_STRING];
if((text[0] == '!') || (text[0] == '!')) {
if(gTeam[playerid] == TEAM_Grov) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_Grov, CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Ballas) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_Ballas,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] ==TEAM_Policja) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_Policja,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Vagos) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_Vagos,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_AZTECAS) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_AZTECAS,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Triada) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_TRIADA,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Rappersi) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_RAPPERS,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Dilezy) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_DRUG_DILLAZ,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Goverment) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_PIMPS,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Rappersi) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_RUSSIAN,CHAT_COLOR, tmp);
}
else if(gTeam[playerid] == TEAM_Mechanicy) {
format(tmp, sizeof(tmp), "%s: %s", PlayerName(playerid), text[1]);
SendClientMessageToTeam(TEAM_MECHANICS,CHAT_COLOR, tmp);
}
return 0;
}
return 1;
}