Useful Commands
#7

Quote:
Originally Posted by [D]ry[D]esert
Посмотреть сообщение
here to to dissable chat
on the top of your script
pawn Код:
new Chat = 1;
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/chat", true))
    {
        if(IsPlayerAdmin(playerid))
        {
        if(Chat == 0)
        {
        Chat = 1;
        SendClientMessage(playerid, 0xFFFFFFFF, "chat enabled");
        }
        if(Chat == 1)
        {
        Chat = 0;
        SendClientMessage(playerid, 0xFFFFFFFF, "chat disable");
        }
        }
    }
    return 0;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
  if(Chat == 0) return 0;
}
Dont mind but usefull commands are diffrent from usefull codes or TUT of doing something
Reply


Messages In This Thread
Useful Commands - by [HK]Ryder[AN] - 29.10.2012, 16:25
Re: Useful Commands - by Luis- - 29.10.2012, 16:29
Re: Useful Commands - by Lordzy - 29.10.2012, 16:34
Re: Useful Commands - by Abhishek. - 29.10.2012, 16:34
Re: Useful Commands - by [HK]Ryder[AN] - 29.10.2012, 16:42
Re: Useful Commands - by [D]ry[D]esert - 29.10.2012, 16:45
Re: Useful Commands - by Abhishek. - 29.10.2012, 17:01
Re: Useful Commands - by [D]ry[D]esert - 29.10.2012, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)