Quited Posted February 19, 2013 Share Posted February 19, 2013 فيه واحد بزر ينشر الهاكات وانا عندي كود يمنعه بس ابيك تضيف كلام عليه عشان تمنع الهاكات الكود : 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
iPrestege Posted February 19, 2013 Share Posted February 19, 2013 -- 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
PaiN^ Posted February 19, 2013 Share Posted February 19, 2013 مشكورين بس لو تحولوا kickPlayer إلى banPlayer *_^ يكون أحسن Link to comment
MrCor Posted February 19, 2013 Share Posted February 19, 2013 مشكورين بس لو تحولوا 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
Quited Posted February 19, 2013 Author Share Posted February 19, 2013 جاري التجربة بكرة Link to comment
PaiN^ Posted February 20, 2013 Share Posted February 20, 2013 كان قصدي فكرة مو طلب لأن ممكن يرجع اللاعب ويسبب إزعاج Mr.Cor أنا أعرف الطريقة عالعموم مشكوور لأن في ناس ما تعرف وتحتاج + ريحتني من إني أنا أسويه 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