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



Chat Help - marinov - 19.11.2010

Is there a way to disable chat, or mute all player when they connect ? and if he tries to use the regular chat it will say "use /ooc or /r"


Re: Chat Help - Cameltoe - 19.11.2010

You should read instead of spamming our forum with useless crap thread's ..

https://sampwiki.blast.hk/ Read about the Callbacks and around them, Good luck.


Re: Chat Help - marinov - 19.11.2010

pawn Код:
public OnPlayerText(playerid, text[])
{
    return 1;
}

but what's the code to disable it ?


Re: Chat Help - Cameltoe - 19.11.2010

Return false instead of true.

pawn Код:
return 1; // positive
return 0; // false



Re: Chat Help - Steven82 - 19.11.2010

Quote:
Originally Posted by marinov
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    return 1;
}

but what's the code to disable it ?
Make a variable. If the varible == 1. then make the return 1; to return 0;