Maksoud Posted June 29, 2016 Share Posted June 29, 2016 السلام عليكم و رحمة الله و بركاته سويت لوحة فيها جريد ليست و اقدر انزل من القريد ليست سيارات ابغى ان ما احد يقدر يركب السيارة الا المنزل السيارة Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 مشكور لو قابلنى مشكلة تقدر تساعدنى ؟ Link to comment
#DRAGON!FIRE Posted June 29, 2016 Share Posted June 29, 2016 ما يحتاج المنت داتا لان هو اساسا راح يستخدم الجدول عشان يسوي السيارهـ فـ بكل بساطة يتحقق انه هل اللي السيارة اللي ركبها اللاعب هي اللي مخزنها بالجدول وبس . Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 ما يحتاج المنت داتا لان هو اساسا راح يستخدم الجدول عشان يسوي السيارهـ فـ بكل بساطة يتحقق انه هل اللي السيارة اللي ركبها اللاعب هي اللي مخزنها بالجدول وبس . توضيح ؟ انا اقصد انى ابى اللاعب المنزل السيارة هو الوحيد اليقدر يركب السيارة هذه Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 كور انا متأكد انك هتقول على اهبل شوف الهبل الانا كاتبه و ساعدنى فيه setElementData(localPlayer,"onlyWhoSpawned",Vehicle1[source]) الكود ذه حطيته مع كود عمل السيارة يعنى لما السيارة تتعمل يسوى المنت داتا addEventHandler ( "onVehicleEnter", root, function() local plr = getLocalPlayer() getElementData(plr,"onlyWhoSpawned") if not getElementData(plr,"onlyWhoSpawned") then removePedFromVehicle(plr) outputChatBox("This Vehicle Belongs To V.I.P",plr,255,0,0) end end end ) و الكود ذه حطيته لوحده تحت Link to comment
Nothing Posted June 29, 2016 Share Posted June 29, 2016 يمديك تسوي بدل removePedFromVehicle cancelEvent تخلي ما يدخل السيارة Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 addEventHandler ( "onVehicleEnter", root, function() local plr = getLocalPlayer() getElementData(plr,"onlyWhoSpawned") if not getElementData(plr,"onlyWhoSpawned") then cancelEvent() outputChatBox("This Vehicle Belongs To V.I.P",plr,255,0,0) end end end ) صار ما ينزل السيارة Link to comment
#Soking Posted June 29, 2016 Share Posted June 29, 2016 addEventHandler ( "onClientVehicleEnter", root, function ( ) if not ( getElementData(localPlayer,"onlyWhoSpawned") ) then cancelEvent( ) outputChatBox("This Vehicle Belongs To V.I.P",255,0,0) end end end ) # The Code Clinet Side - Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 addEventHandler ( "onClientVehicleEnter", root, function ( ) if not ( getElementData(localPlayer,"onlyWhoSpawned") ) then cancelEvent( ) outputChatBox("This Vehicle Belongs To V.I.P",255,0,0) end end end ) # The Code Clinet Side - يقدر يركب بس الكلام يظهرله بالشات !! Link to comment
#Soking Posted June 29, 2016 Share Posted June 29, 2016 اصلن شو وضع التحقق حقكك من الداتا onlyWhoSpawned اطرح كل الاكواد انا مو عارف اساعدك كذا Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 setElementData(player_1,"onlyWhoSpawned",true) انا واضعه بملف سيرفر Link to comment
#Soking Posted June 29, 2016 Share Posted June 29, 2016 طيب player_1 مب معرفه انا هيك ماراح اعرف اساعدك اطرح كل الاكواد ولو خايف اطرحها بالخاص Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 local name = getPlayerName(source) player_1 = getPlayerFromName(name) معرفه بعطيك الاكواد خاص Link to comment
N3xT Posted June 29, 2016 Share Posted June 29, 2016 addEventHandler ( "onClientVehicleEnter", root, function ( ) if not ( getElementData(localPlayer,"onlyWhoSpawned") ) then cancelEvent( ) outputChatBox("This Vehicle Belongs To V.I.P",255,0,0) end end end ) # The Code Clinet Side - الإفنت حقك غلط ، ذا الإفنت إذا ركب الموتر وخلص من كل شيء فـ كيف تبي تكنسل الإفنت ؟ + عندك إند زيادة بسطر 6 التصحيح : addEventHandler ( "onClientVehicleStartEnter", root, function ( ) if not ( getElementData(localPlayer,"onlyWhoSpawned") ) then cancelEvent () outputChatBox("This Vehicle Belongs To V.I.P",255,0,0) end end ) Link to comment
#Soking Posted June 29, 2016 Share Posted June 29, 2016 اها المعذره , + شكرا على التوضيح انا اخذت الافنت وخليته كلينت فقط مشان يتنكسل يعني بالاساس الكود حقه هو Link to comment
N3xT Posted June 29, 2016 Share Posted June 29, 2016 اها المعذره ,+ شكرا على التوضيح انا اخذت الافنت وخليته كلينت فقط مشان يتنكسل يعني بالاساس الكود حقه هو العفو , وحياك الله Link to comment
Maksoud Posted June 29, 2016 Author Share Posted June 29, 2016 addEventHandler ( "onClientVehicleEnter", root, function ( ) if not ( getElementData(localPlayer,"onlyWhoSpawned") ) then cancelEvent( ) outputChatBox("This Vehicle Belongs To V.I.P",255,0,0) end end end ) # The Code Clinet Side - الإفنت حقك غلط ، ذا الإفنت إذا ركب الموتر وخلص من كل شيء فـ كيف تبي تكنسل الإفنت ؟ + عندك إند زيادة بسطر 6 التصحيح : addEventHandler ( "onClientVehicleStartEnter", root, function ( ) if not ( getElementData(localPlayer,"onlyWhoSpawned") ) then cancelEvent () outputChatBox("This Vehicle Belongs To V.I.P",255,0,0) end end ) ما نجح اللاعب الاخر يقدر يركب بس الاوت بوت يوصله ! Link to comment
N3xT Posted June 29, 2016 Share Posted June 29, 2016 وش يجيك بالديبق ؟ + هل عطيته الداتا وقت ما ينزل السيارة ؟ 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