Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case D_PAYNS+2:
- {
- if(!response) return true;
- new i = GetPVarInt(playerid, "PLAYER_CAR");
- new number, numbertext[30];
- new Float:x, Float:y, Float:z, Float:fA;
- GetVehiclePos(i, x, y, z);
- GetVehicleZAngle(i, fA);
- new panels, doors, lights, tires;
- GetVehicleDamageStatus(i, panels, doors, lights, tires);
- DestroyVehicle(i);
- VehicleInfo[i][vVehicle] = CreateVehicle(VehicleInfo[i][vModel], x, y, z, fA, VehicleInfo[i][vColor][0], VehicleInfo[i][vColor][1], -1);
- UpdateVehicleDamageStatus(i, panels, doors, lights, tires);
- format(numbertext, sizeof(numbertext), ""RED"SA "WHITE"%d", VehicleInfo[i][vNumber]);
- SetVehicleNumberPlate(i, numbertext);
- PutPlayerInVehicle(playerid, i, 0);
- }
- void OnCheatDetected(playerid, ip_address[], type, code)
- {
- if(playerid == INVALID_PLAYER_ID) return true;
- if(type) BlockIpAddress(ip_address, 0);
- else
- if(PlayerInfo[playerid][pAdmin] > 0) return true;
- {
- switch(code)
- {
- case 5: return true;
- case 11:
- {
- new vehid = GetPlayerVehicleID(playerid), Float:vhealth;
- AntiCheatGetVehicleHealth(vehid, vhealth);
- SetVehicleHealth(vehid, vhealth);
- return true;
- }
- case 12:
- {
- new Float:pHlth;
- AntiCheatGetHealth(playerid, pHlth);
- SetPlayerHealth(playerid, pHlth);
- return true;
- }
- case 13:
- {
- new Float:pArmr;
- AntiCheatGetArmour(playerid, pArmr);
- SetPlayerArmour(playerid, pArmr);
- return true;
- }
- case 14:
- {
- new a = AntiCheatGetMoney(playerid);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, a);
- return true;
- }
- case 32: return ClearAnimations(playerid, 1);
- case 40: SendClientMessage(playerid, -1, MAX_CONNECTS_MSG);
- case 41: SendClientMessage(playerid, -1, UNKNOWN_CLIENT_MSG);
- case 43..47:
- {
- Kick(playerid);
- return true;
- }
- default:
- {
- static ac_strtmp[sizeof KICK_MSG];
- format(ac_strtmp, sizeof ac_strtmp, KICK_MSG, code);
- SendClientMessage(playerid, -1, ac_strtmp);
- }
- }
- SendAdmin(c_LGREEN, "Античит кикнул игрока %s[%i] (ACID: %i, %i)", GetName(playerid), playerid, type, code);
- ac_OnCheatDetected(playerid, ip_address, type, code);
- new ac_pping = GetPlayerPing(playerid) + 150;
- SetTimerEx("ac_KickTimer", (ac_pping > 500 ? 500 : ac_pping), false, "i", playerid);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement