Chaky Posted July 11, 2014 Share Posted July 11, 2014 andresdh = createVehicle (506, 1418.015625, 673.9677734375, 10.554480552673, 0, 0, 356.96704101563) setElementData(andresdh , "owner", "andresdh") setVehicleDamageProof (andresdh, true ) setVehicleColor ( andresdh , f , f , f , f , f , f ) function onLockedVehicleEnter ( player, seat, jacked ) if getElementData(source, "owner") and getElementData(source, "owner" ) ~= getAccountName(getPlayerAccount(player)) and ( seat == 0 ) then cancelEvent() end end addEventHandler ( "onVehicleStartEnter", getRootElement(), onLockedVehicleEnter ) function Lolr (thePlayer) local account = getPlayerAccount ( thePlayer ) if not isGuestAccount(account) and getAccountName(account) == "andresdh" then respawnVehicle ( andresdh ) else outputChatBox ( "[server]vehiculo Propiedas De Andres", thePlayer, 255, 200, 0 ) end end addCommandHandler("andresdh", stre) addCommandHandler("stre",function(thePlayer) local account = getPlayerAccount ( thePlayer ) if not isGuestAccount(account) and getAccountName(account) == "andresdh" then local x,y,z = getElementPosition(thePlayer) setElementPosition(andresdh,x+3,y,z+3) end end ) quiero que cuando otro usuario trate de ingresar al coche salga la leyenda en el chat de "[server]vehiculo Propiedas De Andres que hago mal me podrian ayudar Link to comment
UserToDelete Posted July 11, 2014 Share Posted July 11, 2014 Lolr no esta definido en ningún evento Link to comment
Castillo Posted July 11, 2014 Share Posted July 11, 2014 Usa el evento onVehicleStartEnter. Link to comment
Recommended Posts