Flipi Posted August 19, 2013 Share Posted August 19, 2013 Hola una pregunta, como hacer un script donde solo un grupo de ACL puede acceder a unos autos específicos, ejemplo admins a vehiculos de policía, y que los que no pertenecen al grupo ACL no puedan entrar a estos vehiculos. [ojala me entiendan y me ayuden ] Link to comment
Flipi Posted August 19, 2013 Author Share Posted August 19, 2013 isObjectInACLGroup pero como seria que no cacho eso Link to comment
Bc# Posted August 19, 2013 Share Posted August 19, 2013 https://wiki.multitheftauto.com/wiki/Scripting_Introduction No entenderás hasta que sepas hacer scripts. Link to comment
Flipi Posted August 19, 2013 Author Share Posted August 19, 2013 https://wiki.multitheftauto.com/wiki/Scripting_IntroductionNo entenderás hasta que sepas hacer scripts. si en tiendo solo que no se como hacerlo Link to comment
FraN-724 Posted August 19, 2013 Share Posted August 19, 2013 Toma, usa mi código. vehicle1 = createVehicle ( 411, -1419.1999511719, -71, 13.89999961853, 0, 0, 0 ) function autos ( player, seat, jacked ) if ( seat == 0 and source == auto or source == vehicle1) then local accountName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Police" ) ) ) then cancelEvent ( ) outputChatBox("Este Vehículo Esta Reservado Para El Grupo Police", thePlayer, 255,90,0, true) end end end addEventHandler ( "onVehicleStartEnter", root, autos ) Link to comment
Flipi Posted August 19, 2013 Author Share Posted August 19, 2013 Toma, usa mi código. vehicle1 = createVehicle ( 411, -1419.1999511719, -71, 13.89999961853, 0, 0, 0 ) function autos ( player, seat, jacked ) if ( seat == 0 and source == auto or source == vehicle1) then local accountName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Police" ) ) ) then cancelEvent ( ) outputChatBox("Este Vehículo Esta Reservado Para El Grupo Police", thePlayer, 255,90,0, true) end end end addEventHandler ( "onVehicleStartEnter", root, autos ) WOW gracias *-* Link to comment
Recommended Posts