Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static PWarningCount[MAX_PLAYERS char];
- if(PlayerInfo[hitid][AFK]) return 1;
- WeaponInfo[playerid][bullets_hit]++;
- if(IsPlayerInAnyVehicle(playerid) || IsPlayerInAnyVehicle(hitid)) return 1;
- if(GetPlayerSurfingVehicleID(playerid) != INVALID_VEHICLE_ID && GetPlayerSurfingVehicleID(hitid) != INVALID_VEHICLE_ID) return 1;
- new Float:sX,Float:sY,Float:sZ;
- GetPlayerLastShotVectors(playerid,fX,fY,fZ,sX,sY,sZ);
- GetPlayerPos(hitid,fX,fY,fZ);
- new Float:dev = (VectorSize(px-fX,py-fY,pz-fZ) - VectorSize(px-sX,py-sY,pz-sZ));
- if(dev > 25.0)
- {
- if(++PWarningCount{playerid} > 4)
- {
- PWarningCount{playerid} = 0;
- format(str,sizeof(str), "[SERVER]: %s(%d) possible proaim. (Deviation: %f)", PlayerInfo[playerid][Name], playerid, dev);
- SendAdminMessage(str, 0xD10000AA, 1);
- }
- }
- else PWarningCount{playerid} = 0;
Advertisement
Add Comment
Please, Sign In to add comment