Little Help!
#2

Use dcmd and sscanf.

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


Messages In This Thread
Little Help! - by Davz*|*Criss - 21.03.2011, 13:40
Re: Little Help! - by PinkFloydLover - 21.03.2011, 13:46
Re: Little Help! - by antonio112 - 21.03.2011, 13:55
Re: Little Help! - by Davz*|*Criss - 21.03.2011, 13:58

Forum Jump:


Users browsing this thread: 2 Guest(s)