S4MuEL Posted May 1, 2013 Author Share Posted May 1, 2013 جرب تحط ملف الكلنت فوق السيرفر في المبتا > ="client.lua" type="client" /> ="server.lua" type="server" />> + وجرب refresh سوي حآططهمم بالظظبط زي ذآ ! :\ Link to comment
S4MuEL Posted May 1, 2013 Author Share Posted May 1, 2013 كودآتي ششغآلةة كلهآ بس يومم حطيت كود سعد حقق عدمم الخروج من السيآرةة خربت Link to comment
iPrestege Posted May 1, 2013 Share Posted May 1, 2013 جرب كذآ : Vehicle = {} addEvent("nothing", true) addEventHandler("nothing",root, function ( ) Vehicle[source] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341-005,269.57095336914 ) warpPedIntoVehicle(source,Vehicle[source]) createBlipAttachedTo(Vehicle[source],9) setElementModel (source,45) end ) addEventHandler("onVehicleStartExit",root, function () if ( source == ( Vehicle[source] ) ) then cancelEvent( true ) end end ) Link to comment
فاّرس Posted May 1, 2013 Share Posted May 1, 2013 The best وين الفنكشن؟ ما انتبهت له , + true في الكانسل مآ تأثر ؟ Link to comment
iPrestege Posted May 1, 2013 Share Posted May 1, 2013 The best وين الفنكشن؟ ما انتبهت له , + true في الكانسل مآ تأثر ؟ لا . Link to comment
فاّرس Posted May 1, 2013 Share Posted May 1, 2013 الخطأ اكيد في البلب + الشخصيه, لانه مافي شيء يشغلهآ, جرب كود برستيج, Link to comment
MR.S3D Posted May 1, 2013 Share Posted May 1, 2013 Server Vehicle = {} addEvent("nothing", true) addEventHandler("nothing",getRootElement(), if not Vehicle[source] then Vehicle[source] = {} end if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) setElementModel(source,45) end addEventHandler("onVehicleStartExit",getRootElement(), function () if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then cancelEvent( true ) end end ) addEventHandler("onPlayerQuit",root, function ( ) if ( Vehicle[source] ) then if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source] = nil end end ) Link to comment
S4MuEL Posted May 1, 2013 Author Share Posted May 1, 2013 ذو بيست مآ إششتغل برستيج إششتغل ، مشكورين الكل ع الممسآعدةة ! = )) Link to comment
MR.S3D Posted May 1, 2013 Share Posted May 1, 2013 ذو بيست مآ إششتغلبرستيج إششتغل ، مشكورين الكل ع الممسآعدةة ! = )) خذ كودي كود برستيج راح يكرر ويسوي لك لاق للسيرفر Link to comment
iPrestege Posted May 1, 2013 Share Posted May 1, 2013 حياكـ الله .. وخذ كود سعد الاق راح يخففة بـ حيث مايكرر .. Link to comment
S4MuEL Posted May 1, 2013 Author Share Posted May 1, 2013 سعد يققلي بالديبوقق سطر 7 ففي شي بالـ if ! Link to comment
فاّرس Posted May 1, 2013 Share Posted May 1, 2013 (edited) جرب , Vehicle = {} addEvent("nothing", true) addEventHandler("nothing",root, function() Vehicle[source] = {} if not Vehicle[source] then end end if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341-005,269.57095336914 ) warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) setElementModel(source,45) ) addEventHandler("onVehicleStartExit",root, function () if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then cancelEvent( true ) end end ) addEventHandler("onPlayerQuit",root, function ( ) if ( Vehicle[source] ) then if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source] = nil end end ) Edited May 1, 2013 by Guest Link to comment
MR.S3D Posted May 1, 2013 Share Posted May 1, 2013 Vehicle = {} addEvent("nothing", true) addEventHandler("nothing",getRootElement(),function () if not Vehicle[source] then Vehicle[source] = {} end if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) setElementModel(source,45) end ) addEventHandler("onVehicleStartExit",getRootElement(), function () if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then cancelEvent( true ) end end ) addEventHandler("onPlayerQuit",root, function ( ) if ( Vehicle[source] ) then if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source] = nil end end ) Link to comment
S4MuEL Posted May 1, 2013 Author Share Posted May 1, 2013 إيهه وأخخيرآ إششتغل ، ض1 لآههنتمم ي رجآل .. وممآ ققصصرت ممعي آخخ سعد ض1 .. Link to comment
S4MuEL Posted May 1, 2013 Author Share Posted May 1, 2013 ي ليل ض1 لمآ آحآول آخرج من السيآرةة آققدر آخرج ، آبيه مآ يخرج كيفف ؟ رجعنآ لـ نففس الممشكلةة -_-" Link to comment
MR.S3D Posted May 1, 2013 Share Posted May 1, 2013 Vehicle = {} addEvent("nothing", true) addEventHandler("nothing",getRootElement(),function () if not Vehicle[source] then Vehicle[source] = {} end if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) setElementModel(source,45) end ) addEventHandler("onVehicleStartExit",getRootElement(), function (plr) if ( Vehicle[plr] and Vehicle[plr]['myVehicle'] and isElement ( Vehicle[plr]['myVehicle'] ) ) then cancelEvent( true ) end end ) addEventHandler("onPlayerQuit",root, function ( ) if ( Vehicle[source] ) then if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then destroyElement(Vehicle[source]['myVehicle']) elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then destroyElement(Vehicle[source]['myBilp']) end Vehicle[source] = nil end end ) Link to comment
Recommended Posts