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" Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
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 "Querer não é poder, mas tentar é avançar"!
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) State: Inactive
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
BorderLine Posted February 7, 2014 Posted February 7, 2014 lo estas poniendo en serverside? Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Jacobob14 Posted February 7, 2014 Author Posted February 7, 2014 lo estas poniendo en serverside? se eso era gracias ya me funciona
Recommended Posts