mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 00:16:27 +02:00
fix(sync): passenger able to lock plates when passenger control disabled
This commit is contained in:
@@ -77,7 +77,7 @@ local function RegisterKeyBinds()
|
||||
|
||||
-- Locks front plate reader
|
||||
RegisterCommand( "radar_fr_cam", function()
|
||||
if ( not RADAR:GetKeyLockState() ) then
|
||||
if ( not RADAR:GetKeyLockState() and PLY:CanControlRadar() ) then
|
||||
READER:LockCam( "front", true, false )
|
||||
|
||||
SYNC:LockReaderCam( "front", READER:GetCameraDataPacket( "front" ) )
|
||||
@@ -87,7 +87,7 @@ local function RegisterKeyBinds()
|
||||
|
||||
-- Locks rear plate reader
|
||||
RegisterCommand( "radar_bk_cam", function()
|
||||
if ( not RADAR:GetKeyLockState() ) then
|
||||
if ( not RADAR:GetKeyLockState() and PLY:CanControlRadar() ) then
|
||||
READER:LockCam( "rear", true, false )
|
||||
|
||||
SYNC:LockReaderCam( "rear", READER:GetCameraDataPacket( "rear" ) )
|
||||
|
||||
Reference in New Issue
Block a user