public OnPlayerText(playerid, text[]){new str[200];new pName[MAX_PLAYER_NAME];if(text[0] == \'!\'){if(gTeam[playerid] == 0){GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);}for(new i; i < MAX_PLAYERS; i++){if(gTeam[playerid] == 0){SendClientMessage(i,0x00ff09AA, str);}}return 0;}
TEAM_Maffiaés TEAM_POLICE
if(text[0] == \'!\'){if(gTeam[playerid] == 0){GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);}for(new i; i < MAX_PLAYERS; i++){if(gTeam == 0){SendClientMessage(i,0x00ff09AA, str);}}return 0;}
public OnPlayerText(playerid, text[]){new str[200];new pName[MAX_PLAYER_NAME];if(text[0] == \'*\'){if(gTeam[playerid] == 0){ GetPlayerName(playerid,pName,sizeof(pName)); format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);}for(new i; i < MAX_PLAYERS; i++){ if(gTeam[playerid] == 0) { SendClientMessage(i,0x00ff09AA, str); }}return 0;}return 1;}
new str[200];new pName[MAX_PLAYER_NAME];if(text[0] == \'!\'){if(gTeam[playerid] == 0){GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);}for(new i; i < MAX_PLAYERS; i++){if(gTeam[playerid] == 0){SendClientMessage(i,0x00ff09AA, str);}}return 0;}
public OnPlayerText(playerid, text[]){new str[200];new pName[MAX_PLAYER_NAME];if(text[0] == \'*\'){if(gTeam[playerid] == TEAM_POLICE){ GetPlayerName(playerid,pName,sizeof(pName)); format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);}for(new i; i < MAX_PLAYERS; i++){ if(gTeam == TEAM_POLICE) { SendClientMessage(i,0x00ff09AA, str); }}return 0;}if(text[0] == \'!\'){if(gTeam[playerid] == TEAM_Maffia){ GetPlayerName(playerid,pName,sizeof(pName)); format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);}for(new i; i < MAX_PLAYERS; i++){ if(gTeam == TEAM_Maffia) { SendClientMessage(i,0x00ff09AA, str); }}return 0;}return 1;}
new gTeam[MAX_PLAYERS];public OnPlayerText(playerid, text[]){new str[200];new pName[MAX_PLAYER_NAME];if(text[0] == \'!\'){GetPlayerName(playerid,pName,sizeof(pName));format(str, sizeof(str),\"[TeamChat] %s: %s\", pName, text[1]);for(new i; i < MAX_PLAYERS; i++){ if(gTeam[playerid] == gTeam) SendClientMessage(i,0x00ff09AA, str);}return 0;}return 1;}