Jump to content

how to block special files in gta3.img?


Recommended Posts

Hello,

I´m an Owner of a Server with DayZ on it and have the problem that unknown users give a map editor around for gta:sa that they can go in bases or in buildings around the map and hide their their cars and tents. I blocked modified gta3.img in mtaserver.conf but some users want to use carmods.Do anyone know how i can block special files in gta3.img?

Thx [TLS]1997wert

Link to comment

https://wiki.multitheftauto.com/wiki/OnPlayerModInfo

checkModels = { "m4.dff", "ak47.dff" } 
  
function handleOnPlayerModInfo ( filename, modList ) 
    for _,mod in ipairs(modList) do         -- Check each modified item 
        for _,checkName in ipairs(checkModels) do 
            if mod.name == checkName then       -- See if modified item is in our check list 
                outputChatBox ( "Not allowed to used modified weapons. Please restore " .. filename ) 
            end 
        end 
    end 
end 
  
addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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