SaedAmer Posted April 29, 2016 Posted April 29, 2016 ايه الخطأ في دول ؟ ---------------------------------------- هنا المفروض غير قابلة للانفجار و الكسر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiComboBoxGetSelected(GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then triggerServerEvent('StopHealth',localPlayer) end end ) --Server addEvent('FixNow',true) addEvent('StopHealth',true) addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 100 then setElementHealth(Veh,100) end end ) addEventHandler('StopHealth',root, function () if getElementHealth(Veh) ~= 100 then return end end ) --------------------------------------- هنا اول ما اضغط علي الشيك بوكس يجي نترو -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiComboBoxGetSelected(GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEvent('nitro',true) addEvent('StopNitro',true) -- Server addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) ---------------------------------------- هنا اول ما اضغط علي البوطن يصلح السيارة -- Client addEventHandler('onClientGUIClick',root, function () if (source == GUIEditor.button[3]) then triggerServerEvent("FixCar", localPlayer) end end ) --Server -- Server addEvent('FixCar',true) addEventHandler( 'FixCar', root, function ( ) if not isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) هنا تصحيح خطا كود الاوان العشوائية و تكون بطيقة addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) --Server addEvent('StartRandomColor', true) addEvent('StopRandomColor',true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) TimerColor = setTimer( function () setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end,500,1) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEventHandler('StopRandomColor',root, function () if isTimer( TimerColor ) then return killTimer(TimerColor) end end ) --------------------------------- هنا السهم مش بيظهر خالص -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiComboBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) --server addEvent('Create',true) addEvent('Delete',true) Object = { } addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end )
SaedAmer Posted April 29, 2016 Author Posted April 29, 2016 وش السالفه الاكواد مش شغالة و مفيش مشكلة في الدي بق
#Soking Posted April 29, 2016 Posted April 29, 2016 addEvent('Create',true) addEvent('Delete',true) Object = { } addEventHandler('Create',root, function ( Player ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', Player ,0 , 255, 0 , true ) local Interior , Dimension = getElementInterior( Player ) , getElementDimension( Player ) local xPosition, yPosition, zPosition = getElementPosition( Player ) Object[Player] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[Player] , Interior ) setElementDimension( Object[Player] , Dimension ) end ) addEventHandler('Delete',root, function ( Player ) if ( isElement( Object[Player] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", Player, 255, 0, 0, true) destroyElement( Object[Player] ) end end )
Me[Z]oO Posted April 30, 2016 Posted April 30, 2016 -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then triggerServerEvent('StopHealth',localPlayer) end end ) addEvent"FixNow",true) addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 100 then setElementHealth(Veh,100) setVehicleDamageProof(Veh, true) end end ) addEvent"StopHealth",true) addEventHandler('StopHealth',root, function () if getElementHealth(Veh) ~= 100 then return end end setVehicleDamageProof(Veh, false) ) ------------ -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEvent('nitro',true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent"StopNitro",true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) -- Client addEventHandler('onClientGUIClick',root, function () if (source == GUIEditor.button[3]) then triggerServerEvent("FixCar", localPlayer) end end ) --Server -- Server addEvent('FixCar',true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) addEvent("StartRandomColor",true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer[player] = setTimer(function( pla ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,100 ,player) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor",true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) --------------------------------- -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) --server Object = { } addEvent('Create',true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEvent('Delete',true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
SaedAmer Posted April 30, 2016 Author Posted April 30, 2016 نصفهم اشتغلو و الباقي لا هنا باقي الخيارت المميزة مبتشتغلش غير لما اشغل الوان عشوائية addEventHandler("onClientGUIClick", root,function() if source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == true then triggerServerEvent('StartRandomColor',localPlayer) elseif source == GUIEditor.checkbox[2] and guiCheckBoxGetSelected (GUIEditor.checkbox[2]) == false then triggerServerEvent('StopRandomColor',localPlayer) سيرفر addEvent("StartRandomColor", true) addEventHandler('StartRandomColor', root,function( ) local vehicle = getPedOccupiedVehicle(source) Timer[player] = setTimer(function( pla ) setVehicleColor(vehicle, math.random(0,255), math.random(0,255), math.random(0,255) ) end, 100,100 ,player) outputChatBox('[RentSystem]: لقد تم تشغيل الأوان العشوائية بنجاح ', source) end) addEvent("StopRandomColor", true) addEventHandler('StopRandomColor',root, function () if isTimer( Timer) then return killTimer(Timer) end end ) ---------------------------------------------------------- هنا السهم بردو مش بيظهر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == true then triggerServerEvent('Create',localPlayer) elseif source == GUIEditor.checkbox[3] and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false then triggerServerEvent('Destroy',localPlayer) end end ) --server Object = { } addEvent('Create', true) addEventHandler('Create',root, function ( ) outputChatBox('[RentSystem]: لقد تم اظهار السهم بنجاح ', source ,0 , 255, 0 , true ) local Interior , Dimension , xPosition, yPosition, zPosition = getElementInterior( source ) , getElementDimension( source) , getElementPosition( source ) Object[source] = createObject(1318,xPosition, yPosition + 10 , zPosition ) setElementInterior( Object[source] , Interior ) setElementDimension( Object[source] , Dimension ) end ) addEvent('Delete', true) addEventHandler('Delete',root, function ( ) if ( isElement( Object[source] ) ) then outputChatBox("[RentSystem]: تم اخفاء السهم بنجاح", source, 255, 0, 0, true) destroyElement( Object[source] ) end end ) ------------------------------------------------------ هنا الكود شغال تمام بس لما اشيل تحديد الشيك بوكس ما يلتغي الكود يعني ما تتفجر تفضل غير قابلة للكسر -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == true then triggerServerEvent('FixNow',localPlayer) elseif source == GUIEditor.checkbox[4] and guiCheckBoxGetSelected (GUIEditor.checkbox[4]) == false then triggerServerEvent('StopHealth',localPlayer) end end ) addEvent("FixNow" , true) addEventHandler('FixNow',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 100 then setElementHealth(Veh,100) setVehicleDamageProof(Veh, true) end end ) addEvent("StopHealth", true) addEventHandler('StopHealth',root, function () if getElementHealth(Veh) ~= 100 then return end setVehicleDamageProof(Veh, false) ---------------------------------------------------------------------- و هنا ما يعطيني نترو -- Client addEventHandler('onClientGUIClick',root, function () if source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == true then triggerServerEvent('nitro',localPlayer) elseif source == GUIEditor.checkbox[1] and guiCheckBoxGetSelected (GUIEditor.checkbox[1]) == false then triggerServerEvent('StopNitro',localPlayer) end end ) addEvent('nitro', true) addEventHandler('nitro',root, function ( ) local Veh = getPedOccupiedVehicle ( source ) addVehicleUpgrade(Veh,1010) end ) addEvent("StopNitro", true) addEventHandler('StopNitro',root, function () local Veh = getPedOccupiedVehicle ( source ) if not addVehicleUpgrade(Veh,1010) then return end removeVehicleUpgrade(Veh,1010) end ) -------------------------------------------------------- و هنا ما يصلح السيارة -- Client addEventHandler('onClientGUIClick',root, function () if (source == GUIEditor.button[3]) then triggerServerEvent("FixCar", localPlayer) end end ) -- Server addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) end ) ----------------------------------------------------- صور الدي بق
Ahmed Ly Posted April 30, 2016 Posted April 30, 2016 addEvent('FixCar', true) addEventHandler( 'FixCar', root, function (thePlayer) if isPedInVehicle (thePlayer) then local Veh = getPedOccupiedVehicle (thePlayer) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', thePlayer ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', thePlayer ,0,255,0,true ) end end )
Me[Z]oO Posted April 30, 2016 Posted April 30, 2016 addEvent('FixCar', true) addEventHandler( 'FixCar', root, function (thePlayer) if isPedInVehicle (thePlayer) then local Veh = getPedOccupiedVehicle (thePlayer) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', thePlayer ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', thePlayer ,0,255,0,true ) end end ) thePlayer مو معرفة Skype :- mezo.prince1 FaceBook :- https://www.facebook.com/medolua YouTube :- http://www.youtube.com/c/MeZoOPriNse
Abdul KariM Posted April 30, 2016 Posted April 30, 2016 السيارة صحتها تجي 1000 ماتجي 100 لو تحطها 100 اعتقد تنفجر [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
Adham Posted April 30, 2016 Posted April 30, 2016 جرب دا الصلاح لو ما ظبت شوف الدي بق وش يقول لك # Client - addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",localPlayer) end end ) # Server addEvent('FixCar',true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) قد تكونآمنيآتنآ حزينه !وآحلآمُنآ ملت طآبور آلإنتِظآر لكنهآ ،تتشبث بآلأمل فنفوسُنآ خُلقت لتقول غداً آجمل
iMr.WiFi..! Posted May 1, 2016 Posted May 1, 2016 ^ الكود ذذ مافي مشكلة بس عشان الاكواد الثانية فيها مشكلة ويعتبره الديبق مشكلة ,, امسك شكراً عبدالكريم عالتوضيح : --Server addEvent('FixNow',true) addEvent('StopHealth',true) addEventHandler('FixNow',root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 1000 then setElementHealth(Veh,1000) setVehicleDamageProof(Veh, true) end end end ) addEventHandler('StopHealth',root, function () if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) if getElementHealth(Veh) ~= 1000 then return end setVehicleDamageProof(Veh, false) end ) عدل ذذ بسيرفر , --- والمشكلة حقت السيارة ماتشتغل انت ضايف اند زايدةة , امسك , addEventHandler ("onClientGUIClick",resourceRoot, function () if ( source == GUIEditor.button[3] ) then triggerServerEvent("FixCar",root) end end ) addEvent('FixCar', true) addEventHandler( 'FixCar', root, function ( ) if isPedInVehicle ( source ) then local Veh = getPedOccupiedVehicle ( source ) fixVehicle(Veh) outputChatBox('[RentSystem]: تم اصلاح سيارتك بنجاح ', source ,0,255,0,true ) else outputChatBox('[RentSystem]: لايوجد سيارة لاصلاحها ', source ,0,255,0,true ) end end ) ---- مافي مشاكل في الاكواد الثانيةة , Experienced MTA developer for 4 years. | MTA خبرة 4 سنين في برمجة ليس عليك اسعاد الجميع , ولكن عليك بإن لا تؤذي أحداً =========You do not have to make everyone happy, But you should not hurt anyone Want to contact with me? Discord: JustCarry#2616 (Always there)Skype: Live:JustCarry10 (Not always)
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