Merge tag 'anticheat' into develop
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
-2084633992,
|
||||
-1075685676,
|
||||
-1786099057,
|
||||
-1074790547
|
||||
-1074790547,
|
||||
-1569615261
|
||||
]
|
||||
|
||||
mp.events.add("playerJoin", () => {
|
||||
@@ -152,7 +153,6 @@
|
||||
checkWeaponhash() {
|
||||
let h = this.weapon;
|
||||
if (allowedWeaponHashes.indexOf(h) === -1) {
|
||||
mp.gui.chat.push("unallowed weapon: " + h);
|
||||
return true
|
||||
}
|
||||
return false
|
||||
@@ -189,12 +189,12 @@
|
||||
let Difference = Behaviour.subtractVector(Behaviour.pos, mp.players.local.position)
|
||||
if (Math.abs(Difference.x) > 30 || Math.abs(Difference.y) > 30) {
|
||||
if (Behaviour.isWalking()) {
|
||||
mp.events.callRemote("CLIENT:CheatDetection", "Flyhack/Teleport")
|
||||
//mp.events.callRemote("CLIENT:CheatDetection", "Flyhack/Teleport")
|
||||
}
|
||||
}
|
||||
if (mp.players.local.vehicle) {
|
||||
if (Behaviour.checkCarPos(25)) {
|
||||
mp.events.callRemote("CLIENT:CheatDetection", "Vehicle Flyhack")
|
||||
//mp.events.callRemote("CLIENT:CheatDetection", "Vehicle Flyhack")
|
||||
}
|
||||
if (Behaviour.VehicleFasterThan(250)) {
|
||||
mp.events.callRemote("CLIENT:CheatDetection", "Vehicle Speedhack")
|
||||
|
||||
Reference in New Issue
Block a user