Help with team chat
#2

here you go
pawn Код:
CMD:f(playerid,params[])
{
new str[200],name[24];
GetPlayeName(playerid, name, 24);
format(str, sizeof(str), "{f0f000}[TEAM CHAT] {00cc00}%s : {ffffff}%s",name,params);
for(new i=0; i<=MAX_PLAYERS; i++)
{
If(!IsPlayerConnected(i))continue;
if(gteam[playerid] != gteam[i])continue;
SendClientMessage(i, -1, str);
}
return 1;
}
Reply


Messages In This Thread
Help with team chat - by prooftzm - 04.07.2014, 11:03
Re: Help with team chat - by BroZeus - 04.07.2014, 11:24
Re: Help with team chat - by alinategh - 04.07.2014, 11:29
Re: Help with team chat - by prooftzm - 04.07.2014, 11:44
Re: Help with team chat - by alinategh - 04.07.2014, 11:47
Re: Help with team chat - by prooftzm - 04.07.2014, 11:51
Re: Help with team chat - by alinategh - 04.07.2014, 11:54
Re: Help with team chat - by prooftzm - 04.07.2014, 11:56
Re: Help with team chat - by prooftzm - 04.07.2014, 12:05
Re: Help with team chat - by SHE790 - 04.07.2014, 12:09

Forum Jump:


Users browsing this thread: 2 Guest(s)