Jump to content

Como hacer este script?


Flipi

Recommended Posts

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 xD]

Link to comment

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
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...