mirror of
https://github.com/jimathy/jim_bridge.git
synced 2026-08-17 05:56:02 +01:00
Put distance exploit checks in place
This is a continuation from an earlier commit - If something is attempted to be opened without correctly registered coordinates, (most likely being called outside the script), refuse it - If the player isn't close enough to the registered coords, refuse it Basically, built-in distance based exploit protection for shops/stashes/sellShops
This commit is contained in:
@@ -121,7 +121,7 @@ end
|
||||
function distExploitCheck(table, src)
|
||||
|
||||
if not table then
|
||||
--print("^1Error^7: ^1This wasn^7'^1t reigstered correctly or this is an exploit attempt^1")
|
||||
print("^1Error^7: ^1This wasn^7'^1t reigstered correctly or this is an exploit attempt^1")
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -138,7 +138,7 @@ function distExploitCheck(table, src)
|
||||
end
|
||||
|
||||
if not allow then
|
||||
debugPrint(src and ("^1Src ^3"..src.." ").."^1Tried to open a registered shop/stash from over the distance limit^7")
|
||||
print(src and ("^1Src ^3"..src.." ").."^1Tried to open a registered shop/stash from over the distance limit^7")
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user