UserToDelete Posted July 2, 2014 Share Posted July 2, 2014 [ vDscript Build 222 ] El problema está en que al hacer "destroyElement" el servidor crashea. function pCreateVehicleAdmiral() jugadorX, jugadorY, jugadorZ = getElementPosition(source) admiralpcar = createVehicle(445, tonumber(jugadorX) + 1, tonumber(jugadorY), tonumber(jugadorZ)) if (admiralpcar) then toggleVehicleRespawn (admiralpcar, true) admiralrespawn = setVehicleIdleRespawnDelay (admiralpcar, 20000) end end addEvent("pCreateVehicleAdmiral",true) addEventHandler("pCreateVehicleAdmiral",root,pCreateVehicleAdmiral) -- -- -- function onVehicleRespawn (exploded) blowVehicle(source) end addEventHandler ("onVehicleRespawn", root, onVehicleRespawn) function onVehicleExplode () destroyElement(source) cancelEvent() end addEventHandler("onVehicleExplode",resourceRoot,onVehicleExplode) Link to comment
Recommended Posts