11.03.2012, 21:49
Thanks a ton, the other chats work.
How about this team chat? I've edited in a bit, and other people can still see it.
How about this team chat? I've edited in a bit, and other people can still see it.
pawn Код:
CMD:t(playerid, params[])
{
new text[128];
if (gTeam[playerid] == TEAM_CT)
if(sscanf(params, "s[128]",text)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /t(eam) [Text]");
format(text,sizeof(text),"[TEAM]%s: %s",GetName(playerid),params);
foreach(Player, i)
{
if (gTeam[i] == TEAM_CT)
{
SendClientMessage(i,COLOR_LIGHTBLUE,text);
}
}
new text1[128];
if (gTeam[playerid] == TEAM_TE)
if(sscanf(params, "s[128]",text1)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /t(eam) [Text]");
format(text1,sizeof(text1),"[TEAM]%s: %s",GetName(playerid),params);
foreach(Player, i)
{
if (gTeam[i] == TEAM_TE)
{
SendClientMessage(i,COLOR_RED,text1);
}
}
return 1;
}