Radio command help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Radio command help (
/showthread.php?tid=153154)
Radio command help -
WardenCS - 07.06.2010
Hello,i wanted to make radio system,but everything works,expect,if im not in the same faction,i can still see other factions chat,heres the sendradiomessage,i think theres the bug,thanks
Code:
public SendRadioMessage(member, color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new membefr = PlayerStatistics[i][pFaction];
if(PlayerStatistics[i][pFaction] == membefr)
{
SendClientMessage(i, color, string);
}
}
}
}
Re: Radio command help -
WardenCS - 07.06.2010
BUMP!