C[re]ative_w0rk|s Posted May 5, 2014 Share Posted May 5, 2014 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
Mikker Posted May 6, 2014 Share Posted May 6, 2014 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now