checkModels = { "bakery_sfse.txd", "bakerybit_sfse.txd", "bigshed_sfse.txd", "factory_sfse.txd", "factorynewsfse.txd", "genwhse_sfse.txd", "vgsswarehse01.txd", "vgsswarehse02b.txd", "vgsswrehse03.txd" }
function handleOnPlayerModInfo( filename, modList )
for _, mod in ipairs( modList ) do
for _, checkName in ipairs( checkModels ) do
if mod.name == checkName then
banPlayer( source, "FILES" )
outputChatBox ( "ban: "..getPlayerName.."FILES", root , 255,0,0 )
end
end
end
end
addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo )
ما يشتغل