Tento script je od Om3na z roku asi 2011.
EDIT: 10 sekúnd na googli a našiel som to
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Anti-reklama by Om3n");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerText(playerid, text[])
{
//--------------------------------------------------------
for(new ip1=1;ip1 < 9; ip1++)
{
for(new ip2=0;ip2 < 9; ip2++)
{
for(new ip3=0;ip3 < 9; ip3++)
{
for(new ip4=0;ip4 < 9; ip4++)
{
new string2[16];
format(string2, sizeof(string2), ":%d%d%d%d", ip1, ip2, ip3, ip4);
new string3[16];
format(string3, sizeof(string3), ": %d%d%d%d", ip1, ip2, ip3, ip4);
new string4[16];
format(string4, sizeof(string3), ": %d %d %d %d", ip1, ip2, ip3, ip4);
if(strfind(text, string2) >= 0)
{
SendClientMessage(playerid, 0xE10000AA, "Banned. No advertising .");
SendClientMessage(playerid, 0xE10000AA, "For unban write to www.ZombiesEra.tk .");
new string[256];
format(string, sizeof(string), "advertising");
BanEx(playerid, string);
return 0;
}
if(strfind(text, string3) >= 0)
{
SendClientMessage(playerid, 0xE10000AA, "Banned. No advertising .");
SendClientMessage(playerid, 0xE10000AA, "For unban write to www.ZombiesEra.tk .");
new string[256];
format(string, sizeof(string), "advertising");
BanEx(playerid, string);
return 0;
}
if(strfind(text, string4) >= 0)
{
SendClientMessage(playerid, 0xE10000AA, "Banned. No advertising .");
SendClientMessage(playerid, 0xE10000AA, "For unban write to www.ZombiesEra.tk .");
new string[256];
format(string, sizeof(string), "advertising");
BanEx(playerid, string);
return 0;
}
}
}
}
}
return 1;
}