Diablomta Posted January 23, 2017 Share Posted January 23, 2017 Hola! miren les explico tengo un script para privatizar un vehiculo pero esta por cuentas de las personas, yo quiero ponerlo por ACL pero e tratado y no me resulta me pueden ayudar un poco? Vehicles = { [429]=true } function lockPrivate( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( Vehicles[getElementModel ( source )] ) and ( seat == 0 ) then local account = getPlayerAccount( thePlayer ) local accountName = ( account and getAccountName ( account ) or "" ) if not( accountName == "Diablo" or accountName == "" or accountName == "" or accountName == "" ) then -----mas cuentas ( accountName == "AQUIELNOMBREDETUCUENTA" or accountName == "AQUIELNOMBREDETUCUENTA" ) removePedFromVehicle( thePlayer ) outputChatBox("Este Vehiculo Pertenece a Administradores!", thePlayer, 255, 0, 0, false) else outputChatBox("Bienvenido al vehiculo de Administrador!", thePlayer, 0, 15, 219, false) end end end end addEventHandler ( "onVehicleEnter", getRootElement(), lockPrivate ) Link to comment
Rose Posted January 23, 2017 Share Posted January 23, 2017 Vehicles = { [429] = true } function lockPrivate( thePlayer, seat, jacked ) if getElementType ( thePlayer ) == "player" then if ( Vehicles[getElementModel ( source )] ) and ( seat == 0 ) then local accountName = getAccountName( getPlayerAccount( thePlayer ) ) if not isObjectInACLGroup("user."..accountName, aclGetGroup("Admin") ) removePedFromVehicle( thePlayer ) outputChatBox("Este Vehiculo Pertenece a Administradores!", thePlayer, 255, 0, 0, false) else outputChatBox("Bienvenido al vehiculo de Administrador!", thePlayer, 0, 15, 219, false) end end end end addEventHandler ( "onVehicleEnter", getRootElement(), lockPrivate ) Link to comment
Recommended Posts