SA-MP Forums Archive
[Include] Anti Vehicle Repair - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Anti Vehicle Repair (/showthread.php?tid=634898)



Anti Vehicle Repair - nieXpro - 28.05.2017

Hi, I'm sharing an anti-cheat system with you guys. It took about 30 minutes to do it.
I'm sorry for my bad English in advance.

Information:

Players who are vehicle health finds and throws it.

Used Functions:

OnGameModeInit
OnPlayerConnect
OnPlayerDisconnect
OnVehicleSpawn
OnPlayerUpdate
OnEnterExitModShop
OnVehicleDamageStatusUpdate
CreateVehicle
AddStaticVehicle
AddStaticVehicleEx
SetVehicleHealth
RepairVehicle



Callbacks:

Code:
public OnPlayerVehHealthHack(playerid)
{
    new str[31 + 24], hacker_name[MAX_PLAYER_NAME];
	GetPlayerName(playerid, hacker_name, sizeof(hacker_name));
	format(str, sizeof(str), "%s(%d) -> Vehicle Repair Hack", hacker_name, playerid);
	SendClientMessageToAll(-1, str);
	return 1;
}
Bug:

I did not encounter any errors. If you find an error, share it with me.

Download:

https://pastebin.com/raw/aF54DXem