SA-MP Forums Archive
[Help]Disable chat - 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]Disable chat (/showthread.php?tid=162837)



[Help]Disable chat - Kastranova - 24.07.2010

Can somebody please tell me how i can disable the chat on a lvdm gamemode


Re: [Help]Disable chat - iggy1 - 25.07.2010

pawn Код:
public OnPlayerText(playerid, text[])
{
    return 0;
}
will disable text in any gamemode. you could make a command lke /disabletext
At top of script with other global variables.
pawn Код:
new disabledchat;
command using zcmd but you should get the idea.
pawn Код:
COMMAND:disablechat(playerid,params[])
{
    disabledchat = 1;
    return 1;
}
Then
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(disabledchat == 1)return 0;
    return 1;
}



Re: [Help]Disable chat - Kastranova - 25.07.2010

thanks man realy helped.