09.07.2011, 04:17
Код:
public OnPlayerText(playerid, text[]) { //Mute Player// if(Mute[playerid] == 1) { return 0; } if(Mute[playerid] == 0) { return 1; } new pName[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, pName, sizeof(pName)); if(text[0] == '!') { format(string, sizeof(string), "[TeamChat] "COL_WHITE"%s: "COL_GREEN"(%i) %s", pName, playerid, text[1]); printf("%s", string); for(new i=0,b=GetMaxPlayers();i<b;i++) { if(gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string); } return 0; } format(string, sizeof(string), "(%i) %s",playerid, text); SendPlayerMessageToAll(playerid, string); return 0; }
but Team chat is not working
what should i do, pls help