22.09.2015, 09:20
This teamchat command sends double messages in chat:
First with Team Chat tag, and second like a normal chat message:
Any help? Thanks.
First with Team Chat tag, and second like a normal chat message:
Код:
if(text[0] == ';') { if(strlen(text) == 0 || strlen(text) > 128) return SCM(playerid,0xFF0000FF, "Write a message between 1 and 128 characters."); new string[128]; GetPlayerName(playerid, string, sizeof(string)); format(string, sizeof(string), "[Team Chat] %s: %s", string, text[1]); foreach (new i : Player) { if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid])return SCM(i, GetPlayerColor(playerid), string); } return 1; }