Jump to content

مهم جدا طلب تعديل على كود منع ملفات


Quited

Recommended Posts

فيه واحد بزر ينشر الهاكات وانا عندي كود يمنعه بس ابيك تضيف كلام عليه عشان تمنع الهاكات

الكود :

checkModels = { "rifle.ifp", "hmybe.dff", "hmybe.txd", "bmybe.dff", "bmybe.txd" } 
  
function handleOnPlayerModInfo( filename, modList ) 
    for _, mod in ipairs( modList ) do 
        for _, checkName in ipairs( checkModels ) do 
            if mod.name == checkName then 
                kickPlayer( source ) 
            end 
        end 
    end 
end 
addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) 

ابيك تضيف على checkModels = { "rifle.ifp", "hmybe.dff", "hmybe.txd", "bmybe.dff", "bmybe.txd" }

ملفات ثانية

اسماء الملفات :

shotgun.ifp

proc_int.col

fight_e.ifp

a51.txd

a51_ext.txd

a51_labs.txd

carimpound_sfe.txd

ce_farmxref.txd

copshop_sfe.txd

crack_intkb.txd

crackfact_sfse.txd

crackfactdem_sfs.txd

freight_sfe.txd

frieghter2sfe.txd

lanpolicecp.txd

lanriver.txd

vgndwntwn1.txd

bakery_sfse.txd

bakerybit_sfse.txd

bigshed_sfse.txd

factory_sfse.txd

factorynewsfse.txd

genwhse_sfse.txd

vgsswarehse01.txd

vgsswarehse02b.txd

vgsswrehse03.txd

معليش شكل الكلمات طويلة لكنها مهمة !

Link to comment

-- Server Side 
  
checkModels = {  
"rifle.ifp",  
"hmybe.dff",  
"hmybe.txd",  
"bmybe.dff",  
"bmybe.txd", 
"proc_int.col",  
"fight_e.ifp", 
"a51.txd", 
"a51_ext.txd", 
"a51_labs.txd", 
"carimpound_sfe.txd", 
"ce_farmxref.txd", 
"copshop_sfe.txd", 
"crack_intkb.txd", 
"crackfact_sfse.txd", 
"crackfactdem_sfs.txd", 
"freight_sfe.txd", 
"frieghter2sfe.txd", 
"lanpolicecp.txd", 
"lanriver.txd", 
"vgndwntwn1.txd", 
"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 
                kickPlayer( source ) 
            end 
        end 
    end 
end 
addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) 
  

Link to comment
مشكورين بس لو تحولوا
kickPlayer  

إلى

banPlayer 

*_^ يكون أحسن

-- Server Side 
  
checkModels = { 
"rifle.ifp", 
"hmybe.dff", 
"hmybe.txd", 
"bmybe.dff", 
"bmybe.txd", 
"proc_int.col", 
"fight_e.ifp", 
"a51.txd", 
"a51_ext.txd", 
"a51_labs.txd", 
"carimpound_sfe.txd", 
"ce_farmxref.txd", 
"copshop_sfe.txd", 
"crack_intkb.txd", 
"crackfact_sfse.txd", 
"crackfactdem_sfs.txd", 
"freight_sfe.txd", 
"frieghter2sfe.txd", 
"lanpolicecp.txd", 
"lanriver.txd", 
"vgndwntwn1.txd", 
"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 ) 
            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...