momar5600 Posted September 23, 2016 Share Posted September 23, 2016 سلام عليكم ورحمة الله وبركاتة اه هو الخطا هنا theVehicle = false function showVehicleName ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle == false then theVehicle = true setElementAlpha(theVehicle, 0) else theVehicle = false setElementAlpha(theVehicle, 255) end end addCommandHandler ( "getcarname", showVehicleName ) Link to comment
Abdul KariM Posted September 23, 2016 Share Posted September 23, 2016 ممكن توضح ايش تبغى تسوي ؟ Link to comment
momar5600 Posted September 23, 2016 Author Share Posted September 23, 2016 بدي اسوي لما اكتب كلمة getcarname باف 8 سيارتي تختفي الوووو Link to comment
Maksoud Posted September 23, 2016 Share Posted September 23, 2016 function VehicleAlpha ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if getElementAlpha(theVehicle) == 255 then setElementAlpha(theVehicle, 0) else setElementAlpha(theVehicle, 255) end end addCommandHandler ( "getcarname", VehicleAlpha ) جرب | انا مجربه و شغال تمام Link to comment
!#NssoR_) Posted September 23, 2016 Share Posted September 23, 2016 1 hour ago, Maksoud said: function VehicleAlpha ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if getElementAlpha(theVehicle) == 255 then setElementAlpha(theVehicle, 0) else setElementAlpha(theVehicle, 255) end end addCommandHandler ( "getcarname", VehicleAlpha ) جرب | انا مجربه و شغال تمام خله كذا افضل function VehicleAlpha ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle and getElementAlpha(theVehicle) == 255 then setElementAlpha(theVehicle, 0) else setElementAlpha(theVehicle, 255) end end addCommandHandler ( "getcarname", VehicleAlpha ) بتقولي وش الفرق ؟ بقولك اذا كان اللاعب مو بالموتر مايجي خطأ بالدي بق . Link to comment
</Mr.Tn6eL> Posted September 23, 2016 Share Posted September 23, 2016 ويصير بق elseنصور كذا اذا مامعه سيارة يروح ل افضل طريقة كذا function VehicleAlpha ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle and then setElementAlpha(theVehicle, getElementAlpha(theVehicle) == 255 and 0 or 255) end end addCommandHandler ( "getcarname", VehicleAlpha ) 2 Link to comment
Abdul KariM Posted September 23, 2016 Share Posted September 23, 2016 1 hour ago, Abdul KariM said: addCommandHandler ( "getcarname", function ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if ( theVehicle ) then local val = getElementAlpha ( theVehicle ) == 255 and 0 or 255 setElementAlpha( theVehicle , val ) end end ) ; Link to comment
Maksoud Posted September 23, 2016 Share Posted September 23, 2016 1 minute ago, </Mr.Tn6eL> said: ويصير بق elseنصور كذا اذا مامعه سيارة يروح ل افضل طريقة كذا function VehicleAlpha ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle and then --- ايش هذا ؟؟ setElementAlpha(theVehicle, getElementAlpha(theVehicle) == 255 and 0 or 255) end end addCommandHandler ( "getcarname", VehicleAlpha ) Link to comment
Abdul KariM Posted September 23, 2016 Share Posted September 23, 2016 Just now, Maksoud said: خطأ مطبعي بسيط if theVehicle then Link to comment
Maksoud Posted September 23, 2016 Share Posted September 23, 2016 Just now, Abdul KariM said: خطأ مطبعي بسيط if theVehicle then هههههه عادي Link to comment
</Mr.Tn6eL> Posted September 23, 2016 Share Posted September 23, 2016 (edited) نسيت احذفها function VehicleAlpha ( thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then --- ايش هذا ؟؟ setElementAlpha(theVehicle, getElementAlpha(theVehicle) == 255 and 0 or 255) end end addCommandHandler ( "getcarname", VehicleAlpha ) Edited September 23, 2016 by </Mr.Tn6eL> 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