16.04.2009, 21:35
Yes
// i made new FilterScript and now its ok!
Thanks very much =>Sandra<=
// i made new FilterScript and now its ok!
Код:
#pragma tabsize 0
#include <a_samp>
#include <core>
#include <float>
new bool:ChatBlocked;
public OnFilterScriptInit()
{
}
public OnPlayerText(playerid, text[])
{
if(ChatBlocked == true && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, 0xFF0000AA, "Sorry, the admins blocked the chat");
return 0;
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/blockchat", true)==0 && IsPlayerAdmin(playerid))
{
if(ChatBlocked == false)
{
ChatBlocked = true;
SendClientMessageToAll(0xFF0000AA, "The Admins blocked the chat!");
}
else
{
ChatBlocked = false;
SendClientMessageToAll(0x00FF00AA, "The Admins unblocked the chat!");
}
return 1;
}
return 0;
}

