13.07.2013, 17:27
I did this.. but team chat doesn't work at all, im in team but it says that im not in team.. could someone help me? E_E
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == '!') { if(GetPlayerTeam(playerid) == 255) { SendClientMessage(playerid, TEST_COLOUR, "You have to be in a clan to use clan chat"); } else { new string[256]; GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "[Clan chat]: %s: %s", string, text[1]); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, GetPlayerColor(playerid), string); } } return 0; } return 1; }