anti-speedhack needed
#2

if(GetPlayerState(i) == PLAYER_STATE_DRIVER && AdminDuty[i] != 1 && !IsAPlane(GetPlayerVehicleID(i)) && PlayerInfo[i][pAdmin] < 6) {
new Float:fCurrentSpeed;
fCurrentSpeed = player_get_speed(i);
fVehSpeed[i] = fCurrentSpeed;
if(fCurrentSpeed > 200) {
new string[74 + MAX_PLAYER_NAME];
format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be speed hacking (%.0f MPH).", GetPlayerNameEx(i), i, fCurrentSpeed);
ABroadCast(COLOR_YELLOW, string, 2);
SetPVarInt(i, "shW", GetPVarInt(i, "shW")+1);

if(GetPVarInt(i, "shW") >= 3) {
format(string, sizeof(string), "%s may possibly have speed hacked (speeds of %.0f MPH).", GetPlayerNameEx(i), fCurrentSpeed);
AddAutomatedFlag(i, string);
}
}
}
Reply


Messages In This Thread
anti-speedhack needed - by ax1 - 30.04.2017, 09:08
Re: anti-speedhack needed - by DavidSF - 30.04.2017, 09:50
Re: anti-speedhack needed - by ax1 - 30.04.2017, 11:30

Forum Jump:


Users browsing this thread: 2 Guest(s)