Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Updated 2020-12-17 | Rewiews: 176
- //Created by Vok3 | more: https://pastebin.com/u/Voke_Bass
- new CheckCount[MAX_PLAYERS];
- new CheckSpam[MAX_PLAYERS];
- public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
- {
- if(GetPlayerWeapon(issuerid) == 0)
- {
- if(amount > 7)
- {
- if(CheckSpam[playerid]) return 1;
- new vehicleid = GetPlayerVehicleID(playerid);
- new model = GetVehicleModel(vehicleid);
- if(model == 509 || model == 510 || model == 521 || model == 522 ||
- model == 523 || model == 581) return 1;
- CheckCount[playerid] ++;
- if(CheckCount[playerid] > 1)
- {
- new String[150];
- format(String, sizeof(String), "[Anti-Cheat] Player %s was kicked out of the server!", /*GetPlayerName*/);
- SendClientMessageToAll(-1, String);
- CheckSpam[playerid] = 1;
- Kick(playerid);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement