SA-MP Forums Archive
How to turn off... - 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: How to turn off... (/showthread.php?tid=131260)



How to turn off... - Torran - 02.03.2010

Is it possible to make it so if players on the server talk,
And theres players on the tutorial, The players on the tutorial cant see what other people say?


Re: How to turn off... - SpiderPork - 02.03.2010

Quote:
Originally Posted by Torran
Is it possible to make it so if players on the server talk,
And theres players on the tutorial, The players on the tutorial cant see what other people say?
pawn Код:
public OnPlayerText(playerid, text[])
{
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
     if(Tutorial[i]/*Or whatever your tutorial variable is*/ == 0)
     {
        SendPlayerMessageToPlayer(i, playerid, text);
     }
   }  
}
That should work. It'll send a message to everybody except the people in the tutorial.