Jump to content

ماهو الخطا هنا بكوج اخفاء سيارتي


momar5600

Recommended Posts

سلام عليكم ورحمة الله وبركاتة

اه هو الخطا هنا

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
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
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

ويصير بق 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 )

 

  • Like 2
Link to comment
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

نسيت احذفها :(

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 by </Mr.Tn6eL>
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...