mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
feat: make sync system check if the other ped is a player
This commit is contained in:
@@ -39,7 +39,7 @@ SYNC = {}
|
||||
function SYNC:SyncData( cb )
|
||||
local otherPed = PLY:GetOtherPed()
|
||||
|
||||
if ( otherPed ~= nil and otherPed ~= 0 ) then
|
||||
if ( otherPed ~= nil and otherPed ~= 0 and IsPedAPlayer( otherPed ) ) then
|
||||
local otherPly = GetPlayerServerId( NetworkGetPlayerIndexFromPed( otherPed ) )
|
||||
|
||||
cb( otherPly )
|
||||
|
||||
Reference in New Issue
Block a user