Jacobob14 Posted February 6, 2014 Share Posted February 6, 2014 mm como podria hacer que lo jugadores no puedan subir a un vehiculo que ya esta ocupado por otro jugador pero que si puedan subirse como pasajeros con G Link to comment
BorderLine Posted February 6, 2014 Share Posted February 6, 2014 no se que mas podrias usar cancelEvent() "onVehicleStartEnter" Link to comment
manawydan Posted February 6, 2014 Share Posted February 6, 2014 (edited) probar (no probado) editado probar con otro event function Enter(p,seat,jacker,dor) if (seat == 0) then local otherp = getVehicleOccupant(source,0) if (otherp) then cancelEvent() --outputChatBox("No enter in vehicle with owner",p) end end end addEventHandler("onVehicleEnter",root,Enter) Edited February 6, 2014 by Guest Link to comment
Jacobob14 Posted February 6, 2014 Author Share Posted February 6, 2014 probar (no probado) function Enter(p,seat,jacker,dor) if (seat == 0) then local otherp = getVehicleOccupant(source,0) if (otherp) then cancelEvent() --outputChatBox("No enter in vehicle with owner",p) end end end addEventHandler("onVehicleStartEnter",root,Enter) hace que no me pueda subir a ningun vehiculo con F solo con g Link to comment
Sasu Posted February 7, 2014 Share Posted February 7, 2014 function Enter(p,seat,jacked) if jacked then cancelEvent() --outputChatBox("No enter in vehicle with owner",p) end addEventHandler("onVehicleStartEnter",root,Enter) Link to comment
Jacobob14 Posted February 7, 2014 Author Share Posted February 7, 2014 function Enter(p,seat,jacked) if jacked then cancelEvent() --outputChatBox("No enter in vehicle with owner",p) end addEventHandler("onVehicleStartEnter",root,Enter) no funciona Link to comment
BorderLine Posted February 7, 2014 Share Posted February 7, 2014 lo estas poniendo en serverside? Link to comment
Jacobob14 Posted February 7, 2014 Author Share Posted February 7, 2014 lo estas poniendo en serverside? se eso era gracias ya me funciona Link to comment
Recommended Posts