SA-MP Forums Archive
anticheat problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: anticheat problem (/showthread.php?tid=617454)



anticheat problem - uploadboys - 21.09.2016

hi ihave problem with car warp teleport hack

in this code :

Код:
forward WheelCheck(playerid);
public WheelCheck(playerid)
{
    if(IsPlayerInAnyVehicle(playerid) && PlayerInfo[playerid][pAdmin] < 8) {
	new string[512];
	new giveplayer[40];
	GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "AdmCmd: %s was kicked from the server by AdmBot, reason: impossible car jack", giveplayer);
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    KickWithMessage(playerid, COLOR_LIGHTRED, "You have been kicked due to cheating.");
	}
	Wheel[playerid] = 0;
    return 1;
}
but its not work on cheaters


Re: anticheat problem - ArianGubetini - 22.09.2016

Quote:
Originally Posted by uploadboys
Посмотреть сообщение
hi ihave problem with car warp teleport hack

in this code :

Код:
forward WheelCheck(playerid);
public WheelCheck(playerid)
{
    if(IsPlayerInAnyVehicle(playerid) && PlayerInfo[playerid][pAdmin] < 8) {
	new string[512];
	new giveplayer[40];
	GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
    format(string, sizeof(string), "AdmCmd: %s was kicked from the server by AdmBot, reason: impossible car jack", giveplayer);
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    KickWithMessage(playerid, COLOR_LIGHTRED, "You have been kicked due to cheating.");
	}
	Wheel[playerid] = 0;
    return 1;
}
but its not work on cheaters
I think you did not tell it to do so.All I can see is a string with a message and nothing else.