Adham Posted February 11, 2017 Share Posted February 11, 2017 سلام عليكم مسوي لما يخش علي مركر يوديه لمكان انا مسوي اليدخل المركر ويروح لمكان قروب البوليس فقط .. لاكن م ظبت كلنت addEventHandler ( "onClientMarkerHit", PoliceCenter, function ( ) triggerServerEvent ( "Marker", localPlayer ) end ) سرفر addEvent ( "Marker", true ) addEventHandler ( "Marker", root, function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 ) end end end) Link to comment
Abu-Solo Posted February 11, 2017 Share Posted February 11, 2017 (edited) 1 minute ago, Deativated said: سلام عليكم مسوي لما يخش علي مركر يوديه لمكان انا مسوي اليدخل المركر ويروح لمكان قروب البوليس فقط .. لاكن م ظبت كلنت addEventHandler ( "onClientMarkerHit", PoliceCenter, function ( ) triggerServerEvent ( "Marker", localPlayer ) end ) سرفر addEvent ( "Marker", true ) addEventHandler ( "Marker", root, function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 ) end end end) وش يقول الدي بق جرب تسوي لوب يجيب اللاعبين Edited February 11, 2017 by Abu-Solo Link to comment
Adham Posted February 11, 2017 Author Share Posted February 11, 2017 WARNING: vRestrunt/Server.lua:7: Bad argument @ 'getPlayerAccountName' [Expected account at argument 1, got, boolean] ERROR: vRestrunt/Server.lua:7: attempt to councatenate a bollean value Link to comment
Abu-Solo Posted February 11, 2017 Share Posted February 11, 2017 5 minutes ago, Deativated said: WARNING: vRestrunt/Server.lua:7: Bad argument @ 'getPlayerAccountName' [Expected account at argument 1, got, boolean] ERROR: vRestrunt/Server.lua:7: attempt to councatenate a bollean value triggerServerEvent ( "Marker", localPlayer,localPlayer ) Link to comment
Adham Posted February 11, 2017 Author Share Posted February 11, 2017 تسلم تم الافاده . 1 Link to comment
Abdul KariM Posted February 11, 2017 Share Posted February 11, 2017 في حدث دخول الماركر لازم تتحقق ان الي دخل الماركر هو اللوكال بلاير 1 Link to comment
^iiEcoo'x_) Posted February 12, 2017 Share Posted February 12, 2017 18 hours ago, Deativated said: سلام عليكم مسوي لما يخش علي مركر يوديه لمكان انا مسوي اليدخل المركر ويروح لمكان قروب البوليس فقط .. لاكن م ظبت كلنت addEventHandler ( "onClientMarkerHit", PoliceCenter, function ( ) triggerServerEvent ( "Marker", localPlayer ) end ) سرفر addEvent ( "Marker", true ) addEventHandler ( "Marker", root, function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then setElementInterior ( source, 3, 238.62845, 141.09608, 1003.02344 ) end end end) سويه ب سيرفر onMarkerHit ! Link to comment
N3xT Posted February 12, 2017 Share Posted February 12, 2017 addEventHandler ( "onClientMarkerHit", PoliceCenter, function ( p ) if ( p == localPlayer ) then triggerServerEvent ( "Marker", localPlayer, localPlayer ) end end ) addEvent ( "Marker", true ) addEventHandler ( "Marker", root, function ( p ) local acc = getPlayerAccount ( p ) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Police")) then setElementInterior ( p, 3, 238.62845, 141.09608, 1003.02344 ) end end end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now