1
Forum Games / My auto kick people who ask for admin
« on: December 15, 2007, 11:43:55 AM »
This command will kick some one if they ask for admin or to load some thing, I got pissed of people asking for admin and stuff and in the last hour this has kicked 3 people for asking for admin and loading some thing.
package mao
{
function servercmdmessagesent(%client,%msg,%value1,%value2)
{
if(strstr(strlwr(%msg),"can i")>-1 || strstr(strlwr(%msg),"may i")>-1)
{
if(strstr(strlwr(%msg),"admin") > -1 || strstr(strlwr(%msg),"load") > -1)
{
echo("omgthisworks");
%client.delete("No you can't have admin/Load somthing");
messageall(5,'\c3%1 Was kicked for asking for admin/loading somthing',%client.name);
}
}
else
{
parent::servercmdmessagesent(%client,%msg,%value1,%value2);
}
}
};
activatepackage("mao");
package mao
{
function servercmdmessagesent(%client,%msg,%value1,%value2)
{
if(strstr(strlwr(%msg),"can i")>-1 || strstr(strlwr(%msg),"may i")>-1)
{
if(strstr(strlwr(%msg),"admin") > -1 || strstr(strlwr(%msg),"load") > -1)
{
echo("omgthisworks");
%client.delete("No you can't have admin/Load somthing");
messageall(5,'\c3%1 Was kicked for asking for admin/loading somthing',%client.name);
}
}
else
{
parent::servercmdmessagesent(%client,%msg,%value1,%value2);
}
}
};
activatepackage("mao");