29.10.2012, 16:45
here to to dissable chat
on the top of your script
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;
}