Problem With AntiCheat
#1

Hey, I have one problem, i made AntiCheat system but when player go to the server, player is banned for using of cheat, Server turn off automaticlly

Quote:

public AntiCheatGuardText(playerid)
{
if(Anticheat[Jetpack] == true)
{
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
{
new str[MAX_STRING];
SendClientMessage(playerid,COLOR_RAUDONA,"[AntiCheat] Tu esi uћblokuotas. (Prieћastis: Jetpack)");
format(str, sizeof(str),"[AntiCheat] %s Yra uћblokuotas. (Prieћastis: Jetpack)",PlayerName(playerid));
SendClientMessageToAll(COLOR_RAUDONA,str);
Ban(playerid);
}
}
if(Anticheat[Ginklas] == true)
{
new Ginklas1, Soviniai;
new str[MAX_STRING];
GetPlayerWeaponData(playerid, 7, Ginklas1, Soviniai);
if(Ginklas1 == 3
{
SendClientMessage(playerid,COLOR_RAUDONA,"[AntiCheat] Tu esi uћblokuotas. (Prieћastis: MiniGun)");
format(str, sizeof(str),"[AntiCheat] %s Yra uћblokuotas. (Prieћastis: MiniGun)",PlayerName(playerid));
SendClientMessageToAll(COLOR_RAUDONA,str);
Ban(playerid);
}
if(Ginklas1 == 36 || Ginklas1 == 35)
{
SendClientMessage(playerid,COLOR_RAUDONA,"[AntiCheat] Tu esi uћblokuotas. (Prieћastis: Rocket Launcher)");
format(str, sizeof(str),"[AntiCheat] %s Yra uћblokuotas. (Prieћastis: Rocket Launcher)",PlayerName(playerid));
SendClientMessageToAll(COLOR_RAUDONA,str);
Ban(playerid);
}
if(Ginklas1 == 39)
{
SendClientMessage(playerid,COLOR_RAUDONA,"[AntiCheat] Tu esi uћblokuotas. (Prieћastis: Satchel Charge's)");
format(str, sizeof(str),"[AntiCheat] %s Yra uћblokuotas. (Prieћastis: Satchel Charge's)",PlayerName(playerid));
SendClientMessageToAll(COLOR_RAUDONA,str);
Ban(playerid);
}
}
if(GetPlayerPing(playerid) > Anticheat[MaxPing])
{
new str[MAX_STRING];
format(str, sizeof(str),"[AntiCheat] %s Yra Iљspyrtas. (Prieћastis: Virљytas ping (MAX) %d",PlayerName(playerid),Anticheat[MaxPing]);
SendClientMessageToAll(COLOR_RAUDONA,str);
Kick(playerid);
}
return 1;
}

Reply


Messages In This Thread
Problem With AntiCheat - by RenisiL - 13.04.2010, 16:42
Re: Problem With AntiCheat - by RichyB - 14.04.2010, 08:40
Re: Problem With AntiCheat - by Thrarod - 14.04.2010, 09:07

Forum Jump:


Users browsing this thread: 1 Guest(s)