[Help]Disable chat
#1

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

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;
}
Reply
#3

thanks man realy helped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)