21.03.2011, 13:46
Use dcmd and sscanf.
The disabling chat is easy.
create a variable:
Then create a command, inside that command assign the ChatDisabled var to 1:
then under OnPlayerText put:
That's a simple command for turning off and on chat.
The disabling chat is easy.
create a variable:
Код:
new ChatDisabled = 0;
pawn Код:
dcmd_disablechat(playerid,params[])
{
if(ChatDisabled == 0)
{
ChatDisabled = 1;
}
else
{
ChatDisabled = 0;
}
return 1;
}
pawn Код:
if(ChatDisabled == 1) return 0;