Search the Community
Showing results for tags 'day'.
-
►Brazil Survival (rust/dayz)◄[ALPHA 1.10]-LVL,BUILD,ZOMBIES,PVP,MISSIONS♦ Base grátis (informações no discord) Discord: http://discord.gg/CT4ZRsY2wG IP: mtasa://51.81.94.231:22003
-
Hola chicos, bueno ocupo una pequeña ayuda con este script del dayz el problema es el siguiente: Los autos funcionan perfecto y todo el problema es que no hay sonido únicamente quien maneja el vehículo lo escucha. --Esto es lo que tengo en el survivorSystem_client.lua function toggleEngine() if getPedOccupiedVehicleSeat(getLocalPlayer()) ~= 0 then return end veh = getPedOccupiedVehicle(getLocalPlayer()) vehCol = getElementData(veh,"parent") needengine = getElementData(vehCol,"needengines") needtires = getElementData(vehCol,"needtires") needrotor = getElementData(vehCol,"needrotor") needparts = getElementData(vehCol,"needparts") needglass = getElementData(vehCol,"needglass") engine = getElementData(vehCol,"Engine_inVehicle")or 0 tires = getElementData(vehCol,"Tire_inVehicle")or 0 rotor = getElementData(vehCol,"Rotor_inVehicle")or 0 parts = getElementData(vehCol,"Parts_inVehicle")or 0 fuel = getElementData(vehCol,"fuel") if needengine == engine and needtires == tires and needrotor == rotor and (fuel > 0) and needparts == parts then setVehicleEngineState(veh,not getVehicleEngineState(veh)) end if getVehicleEngineState(veh)== true then triggerEvent("displayClientInfo",getLocalPlayer(),"Vehicle","Engine started!",22,255,0) else triggerEvent("displayClientInfo",getLocalPlayer(),"Vehicle","Engine stopped!",255,22,0) end end bindKey("k","down",toggleEngine) Y esto -- Esto es lo de vehicle_spawns.lua function onPlayerEnterDayzVehicle(veh,seat) if seat == 0 then setVehicleEngineState(veh,false) outputChatBox("Press 'K' to turn the engine on/off!",source,255,255,255) end end addEventHandler("onPlayerVehicleEnter",getRootElement(),onPlayerEnterDayzVehicle) function onPlayerExitDayzVehicle(veh,seat) if seat == 0 then setVehicleEngineState(veh,false) end end addEventHandler("onPlayerVehicleExit",getRootElement(),onPlayerExitDayzVehicle) Gracias desde ya