Jacobob14 Posted February 6, 2014 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
BorderLine Posted February 6, 2014 Posted February 6, 2014 no se que mas podrias usar cancelEvent() "onVehicleStartEnter"
manawydan Posted February 6, 2014 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
Jacobob14 Posted February 6, 2014 Author 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
Sasu Posted February 7, 2014 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)
Jacobob14 Posted February 7, 2014 Author 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
Jacobob14 Posted February 7, 2014 Author Posted February 7, 2014 lo estas poniendo en serverside? se eso era gracias ya me funciona
Recommended Posts