SA-MP Forums Archive
orgchat - 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: orgchat (/showthread.php?tid=213645)



orgchat - THE_KNOWN - 19.01.2011

how do you make a orgchat cmd /oc.

i tried this

Код:
CMD:oc(playerid, params[])
{
	if(Member[playerid] == 4)//if player belongs to so and so org
	    {
	    for(new i = 0; i<MAX_PLAYERS ;i++)
	    {
	        if(Member[playerid] == 4)
	            {
	            SendClientMessage(i, SWAT_COLOR, params);
	            SendClientMessage(playerid, SWAT_COLOR, params);
	            }
	    }
	    }
 	return 1;
}