Help with channes [please 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: Help with channes [please help] (
/showthread.php?tid=199818)
Help with channes [please help] -
[JnA]DukeNukem - 16.12.2010
I need a little help...again....
I want to make chat channels, and I got some replies, which i can't understand....is it possible for someone to make me like a channel FS? like if a player is TEAM_COP and he types /c haha then only other TEAM_COP players get this :
Player says: haha
Thanks in advance
Re: Help with channes [please help] -
Ash. - 16.12.2010
Its quite a simple process...
Just use a loop for all players, see if the player is in TEAM_COP for example, and then send them the message if they are.
Re: Help with channes [please help] -
Baboon - 16.12.2010
what he said, make a loop and then something like: if(getplayerteam(playerid) == team1) etc..
then sendClientmessage etc. Also use formats.
Re: Help with channes [please help] -
[JnA]DukeNukem - 16.12.2010
Can you just make an example please? like onplayercommandtext or something because i am new to scripting and i have no idea how to do it?
thanks