Chat differs by Virtual World or by Variable - 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: Chat differs by Virtual World or by Variable (
/showthread.php?tid=147999)
Chat differs by Virtual World or by Variable -
scottyishere - 15.05.2010
Hello.
I want to make chat invisible in case two people are in different worlds or have different variables.
I want the message to be broadcasted only if two people are in the same world or have same variable.
public OnPlayerText(playerid,...)
Any help?
Re: Chat differs by Virtual World or by Variable -
juice.j - 15.05.2010
In OnPlayerText(playerid,text[]), simply loop through all players, check for their virtual words and send them a client message using "text" from "OnPlayerText(playerid,text[]).