Jump to content

Some Help With This


X-SHADOW

Recommended Posts

Hi all i want to Make a original table with vehicles and skins and weapons

if the vehicles and weapons and skins of player not original then Kick Him With Kick Msg i found this on Wiki how to edit it ?

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...