Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

[Include] Anti Vehicle Repair

$
0
0
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

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>