S4MuEL Posted May 28, 2013 Share Posted May 28, 2013 salut a tous ! .. brabbi ynajjamchi wé7éd y3awinni bel code ? . n7eb idha ken ay béb ma7loul fil karhba wel chauffeur walla elli 9a3ed bjanbou .. yasm3ou sot . ma3reftch kifeh na3mlou el code ! .. amma essout yji ll elli rékéb el karhba akahaw ! w yatla3lou dx .. w idha ken el biben msakrin destroyElement . local Cars = getElementsByType("vehicle") for _,k in ipairs ( Cars ) do local isDoorAjar = false for i=0,5 do local doorState = getVehicleDoorState(k, i) if doorState then Link to comment
WASSIm. Posted May 29, 2013 Share Posted May 29, 2013 addEventHandler("onClientRender",root, function doesVehicleHaveDoorOpen( ) if (getVehicleOccupant(source)) then local doorState = getVehicleDoorState(getVehicleOccupant(source)) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then playSound("sound.mp3") end end end ) Link to comment
WASSIm. Posted May 29, 2013 Share Posted May 29, 2013 addEventHandler("onClientRender",root, function doesVehicleHaveDoorOpen( ) if (getPedOccupiedVehicle(source)) then local doorState = getVehicleDoorState(getPedOccupiedVehicle(source)) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then playSound("sound.mp3") end end end ) Link to comment
S4MuEL Posted May 29, 2013 Author Share Posted May 29, 2013 fil debug y9olli famma mochkla star 2 ! Link to comment
WASSIm. Posted May 30, 2013 Share Posted May 30, 2013 fil debug y9olli famma mochkla star 2 ! 7otli badhabt chnawa 9alolik Link to comment
Sparrow Posted May 30, 2013 Share Posted May 30, 2013 addEventHandler("onClientRender",root, function () if (getPedOccupiedVehicle(localPlayer)) then local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer)) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then playSound("sound.mp3") end end end ) Link to comment
S4MuEL Posted May 30, 2013 Author Share Posted May 30, 2013 din wéldih .. y9olli bad argument @ getVehicleDoorState Link to comment
Sparrow Posted May 30, 2013 Share Posted May 30, 2013 addEventHandler("onClientRender",root, function () if (getPedOccupiedVehicle(localPlayer)) then for i=0,5 do local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then playSound("sound.mp3") end end end end ) Link to comment
S4MuEL Posted May 30, 2013 Author Share Posted May 30, 2013 (edited) 5dém .. mais el sot may7ébéch ya3mel stop .. brabbi chouf .. tnajjamchi trigilli el mod .. kima 9otlek .. w idha ken el biben ma7loula yji klém( Dx ) .. w y9oullou el karhba ma7loula .. w idha kén el bibén tsakrou el dx témchi . wél sound yémchi .. amma el dx a3mélhéli math.random ! alwen w idha kén t7éb 7aja mo9abel hedha 9olli ! Edited May 30, 2013 by Guest Link to comment
WASSIm. Posted May 30, 2013 Share Posted May 30, 2013 omorek 6/zit --setting local sx,sy = guiGetScreenSize ( ) --screen dont change local sx1, sy1, sx2, sy2 = sx*(250.0/1440),sy*(655.0/900),sx*(27.0/1440),sy*(232.0/900) --post local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) --color local scale = 2.15 --scale local font = "pricedown" --font addEventHandler("onClientRender",root, function () if (getPedOccupiedVehicle(localPlayer)) then for i=0,5 do local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then dxDrawText("Door is open",sx1, sy1, sx2, sy2,tocolor(r, g, b,255),scale,font,"right","top",false,false,false) playSound("sound.mp3" ,false) end end end end ) Link to comment
S4MuEL Posted May 31, 2013 Author Share Posted May 31, 2013 yé5dém .. amma essot yzanzan .. w maitsakkarch ! wel klém yatla3 3al isar w mahouch dhahr Link to comment
WASSIm. Posted May 31, 2013 Share Posted May 31, 2013 fama 7aja hablatni il script ma5damlich 3andi wa 5dam 3andek --setting local sx,sy = guiGetScreenSize ( ) --screen dont change local sx1, sy1, sx2, sy2 = sx*(27.0/1440),sy*(655.0/900),sx*(27.0/1440),sy*(232.0/900) --post local r, g, b = math.random(0, 255), math.random(0, 255), math.random(0, 255) --color local scale = 2.15 --scale local font = "pricedown" --font addEventHandler("onClientRender",root, function () if (getPedOccupiedVehicle(localPlayer)) then for i=0,5 do local doorState = getVehicleDoorState(getPedOccupiedVehicle(localPlayer), i) if doorState == 2 or doorState == 3 or doorState == 4 or doorState == 5 then dxDrawText("Door is open",sx1, sy1, sx2, sy2,tocolor(r, g, b,255),scale,font,"left","top",false,false,false) playSound("sound.mp3" ,true) end end end end ) 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