Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(GetPlayerState(playerid) != 9)
- {
- if(!vehid)
- {
- if(GetPlayerSurfingVehicleID(playerid) == 65535 && GetPlayerSurfingObjectID(playerid) == 65535)
- {
- GetPlayerFacingAngle(playerid, ang);
- GetPlayerVelocity(playerid, ac_vX, ac_vY, ac_vZ);
- ac_vX = ac_GetSpeed(ac_vX, ac_vY, ac_vZ);
- if(ac_vX > 212.0 && acSpeed[playerid] < ac_vX && ang == 0.0)
- {
- writeLog("Wykryto FOOT Pizdarvanke u gracza: %s Exp: %d Speed: %f", GetPlayerNick(playerid), GetPlayerScore(playerid), ac_vX);
- KickPlayer(playerid, -1, "Pizdarvanka");
- }
- acSpeed[playerid] = ac_vX;
- }
- }
- else
- {
- static Float:ac_vsp, Float:ac_spdiff;
- GetVehicleVelocity(vehid, ac_vX, ac_vY, ac_vZ);
- static Float:ac_vhealth;
- GetVehicleHealth(vehid, ac_vhealth);
- if(GetTickCount() > pData[playerid][velTime] + (GetPlayerPing(playerid)+100))
- {
- ac_i = GetVehicleModel(vehid) - 417;
- ac_vsp = ac_GetSpeed(ac_vX,ac_vY,ac_vZ);
- ac_spdiff = ac_vsp - ac_GetSpeed(ACVehInfo[vehid][acVel][0],ACVehInfo[vehid][acVel][1],ACVehInfo[vehid][acVel][2]);
- if(ac_spdiff >= 20.0 && !((ac_i == 32 || 119 < ac_i < 122) && ac_spdiff < 65.0) &&
- ACVehInfo[vehid][acSpeedxDiff] <= ac_spdiff &&
- (63 < ac_i < 94 && ac_vType[ac_i] != 4 || floatabs(ac_vX) > 0.3 || floatabs(ac_vY) > 0.3 || floatabs(ac_vZ) > 0.3) &&
- ACVehInfo[vehid][acHealth] == ac_vhealth && ACVehInfo[vehid][acHealth] > 220.0)
- {
- WarnA[playerid] ++;
- if(WarnA[playerid] >= 3)
- {
- new Float:sp = GetVehSpeed(vehid);
- if(sp >= 2999 && sp <= 5000)
- {
- Warnings[playerid] ++;
- if(Warnings[playerid] >= 2)
- {
- if(!pizdo) {
- writeLog("Wykryto Veh Pizdarvanke u gracza: %s Exp: %d Speed: %f", GetPlayerNick(playerid), GetPlayerScore(playerid), sp);
- KickPlayer(playerid, -1, "Pizdarvanka");
- }
- }
- }
- }
- }
- }
- ACVehInfo[vehid][acSpeedxDiff] = ac_spdiff;
- ACVehInfo[vehid][acVel][0] = ac_vX;
- ACVehInfo[vehid][acVel][1] = ac_vY;
- ACVehInfo[vehid][acVel][2] = ac_vZ;
- ACVehInfo[vehid][acHealth] = ac_vhealth;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement