31.10.2009, 09:07
Hi there.
Iґm using this script for teamchat:
But unfortunately, when someone writes something on /t, the IRC channel is getting spammed with it. (IrcSay(str)
. Why?
Iґm using this script for teamchat:
Код:
if(strcmp(cmdtext, "/t", true)) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(MyVar[i] == MyVar[playerid]) { new pname[26]; GetPlayerName(playerid, pname, sizeof(pname)); new str[256]; format(str, 256, "[TEAM] %s: %s", pname, cmdtext[3]); SendClientMessage(i, 0x2641FEAA, str); IrcSay(str); } } } return 1; }
