Quited Posted December 12, 2013 Share Posted December 12, 2013 (edited) اصلاح كود ***** -- # Client Side function BlockWallhackSetting() if dxGetStatus(SettingAntiAliasing) == x1 or x2 or x3 and if dxGetStatus(SettingAnisotropicFiltering) == 2x or 4x or 8x or 16x and if dxGetStatus(SettingWindowed) == true then triggerServerEvent ( "onUseWallhackSetting", BlockWallHackSetting" ) end end -- # Server Side function BlockWallhackSetting() kickPlayer("source, لا تستخدم اعدادات ول هاك") end addEvent ( "onUseWallhackSetting", true) addEventHandler("onPlayerJoin",root,) طبعا انا اللي مسويه والكود متعوب عليه المهم صلحو لي اياه ض1 Edited December 12, 2013 by Guest Link to comment
EH10 Posted December 12, 2013 Share Posted December 12, 2013 (edited) function BlockWallhackSetting() if dxGetStatus(SettingAntiAliasing) == x1 or x2 or x3 and if dxGetStatus(SettingAnisotropicFiltering) == 2x or 4x or 8x or 16x and if dxGetStatus(SettingWindowed) == true then triggerServerEvent ( "onUseWallhackSetting", BlockWallHackSetting ) end end end end ) function BlockWallhackSetting() kickPlayer( source, "Don't Use WallHack Setting") end addEvent( "onUseWallhackSetting", true) addEventHandler("onPlayerJoin",root, BlockWallhackSetting ) Edited December 12, 2013 by Guest Link to comment
TAPL Posted December 12, 2013 Share Posted December 12, 2013 جرب كلينت: function BlockWallhackSetting() local x = dxGetStatus() if x.SettingAntiAliasing > 0 and x.SettingAnisotropicFiltering > 0 and x.SettingWindowed == true then triggerServerEvent("onUseWallhackSetting", localPlayer) end end setTimer(BlockWallhackSetting, 5000, 0) سيرفر: addEvent("onUseWallhackSetting", true) addEventHandler("onUseWallhackSetting", root, function() kickPlayer(source, "Don't Use WallHack Setting") end) Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 للاسف دخلت السيرفر بالاعدادات وماجاني كيك Link to comment
The Killer Posted December 12, 2013 Share Posted December 12, 2013 ضفت المود لقروب الادمن ؟ Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 يبوي ضايفه ماني اهبل ^_6 معروف kickPlayer تحتاج صلاحيات ادمن Link to comment
EH10 Posted December 12, 2013 Share Posted December 12, 2013 client function BlockWallhackSetting() local x = dxGetStatus() if x.SettingAntiAliasing > 0 and x.SettingAnisotropicFiltering > 0 and x.SettingWindowed == true then triggerServerEvent("onUseWallhackSetting", localPlayer) end end setTimer(BlockWallhackSetting, 5000, 1 ) Server addEvent("onUseWallhackSetting", true) addEventHandler("onUseWallhackSetting", root, function() kickPlayer(source, "Don't Use WallHack Setting") end) Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 شكل المشكلة لان تابل ماحط حدث onPlayerJoin Link to comment
TAPL Posted December 12, 2013 Share Posted December 12, 2013 شكل المشكلة انت مو عارف وين تحط الكلينت و وين تحط السيرفر Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 حاطها صح 100% سايب سطرين من الكود اللي بملف الكلنت وحطيت كود الكلنت وسايب سطرين من الكود اللي بملف السيرفر وحطيت كود السيرفر Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 حاطها من تاب Video من MTA Setting Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 ماني اهبل والله Link to comment
TAPL Posted December 12, 2013 Share Posted December 12, 2013 اعداداتك مضبوطه معناتها المشكلة هنا شكل المشكلة انت مو عارف وين تحط الكلينت و وين تحط السيرفر Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 client side outputChatBox("#FF0000Anti Cheat By #CCFF00ALBANDER + [mSc]MJOOD + ZeeM + TAPL", 255, 255, 255,true ) function BlockWallhackSetting() local x = dxGetStatus() if x.SettingAntiAliasing > 0 and x.SettingAnisotropicFiltering > 0 and x.SettingWindowed == true then triggerServerEvent("onUseWallhackSetting", localPlayer) end end setTimer(BlockWallhackSetting, 5000, 0) server side -- Server Side # checkModels = { "somyst.dff", "bmybar.dff", "bmytatt.dff", "wmyva.dff", "sfr1.dff", "sfr2.dff", "sfr3.dff", "vla3.dff", "vla2.dff", "vla1.dff", "lsv3.dff", "lsv2.dff", "lsv1.dff", "sweet.dff", "cj.dff", "smoke.dff", "ryder.dff", "hmyri.dff", "omyst.dff", "vmaff1.dff", "swat.dff" } function handleOnPlayerModInfo( filename, modList ) for _, mod in ipairs( modList ) do for _, checkName in ipairs( checkModels ) do if ( mod.name == checkName ) or ( mod.name:lower ( ):find ( ".ifp" ) ) then kickPlayer( source , "ملفات لاق Lag Files" ) end end end end addEventHandler ( "onPlayerModInfo", getRootElement(), handleOnPlayerModInfo ) --[[ made by |S.s|SoRa for more scripts checkout my community page : [url=https://community.multitheftauto.com/ind]https://community.multitheftauto.com/ind[/url] ... &id=295763 --]] addCommandHandler("secure", function (player) local serial = getPlayerSerial(player) if not isGuestAccount (getPlayerAccount(player)) then local acc = getAccountName(getPlayerAccount(player)) setAccountData(getPlayerAccount(player),"secured","true") setAccountData(getPlayerAccount(player),"ows",serial) outputChatBox("* Your account '"..acc.."' now is secured.",player,0,255,0) end end) addCommandHandler("carmetoyoucmmmure", function (player) local serial = getPlayerSerial(player) if not isGuestAccount (getPlayerAccount(player)) then local acc = getAccountName(getPlayerAccount(player)) setAccountData(getPlayerAccount(player),"secured","false") outputChatBox("* Security now is disabled from your account '"..acc.."'.",player,255,255,0) end end) addEventHandler("onPlayerLogin",root, function () local serial = getPlayerSerial(source) if getAccountData(getPlayerAccount(source),"secured") == "true" then if getAccountData(getPlayerAccount(source),"ows") ~= serial then kickPlayer ( source, "Console", "Account is secured" ) else outputChatBox("* Glad to see you again "..getPlayerNameClean(source).." ",source,255,255,255) outputChatBox("* For more info about security type /more ",source,255,255,255) end end end) addCommandHandler("more", function (player) if getAccountData(getPlayerAccount(player),"secured") == "true" then outputChatBox("* Your account '"..getAccountName(getPlayerAccount(player)).."' is secured.",player,0,255,0) outputChatBox("* This means that no one except you can use it.",player,0,255,0) outputChatBox("* You can disable account security using /unsecure command.",player,255,255,0) end end) addCommandHandler("kme", function (player) kickPlayer ( player, "Console", "Account is secured" ) end) function getPlayerNameClean(player) local name = getPlayerName(player) if name:find("#%x%x%x%x%x%x") then name = name:gsub("#%x%x%x%x%x%x","") return name else return name end end Command = { ['aexec'] = true; ['delaccount'] = true; ['chgpass'] = true; ['shutdown'] = true; ['stopall'] = true; ['stopmode'] = true; ['stopmap'] = true; ['loadmodule'] = true; ['crun'] = true; ['run'] = true; ['srun'] = true; ['execute'] = true; ['install'] = true; ['speed'] = true; ['cv'] = true; ['giveweapon'] = true; ['give'] = true; ['wp'] = true; ['jetpack'] = true; ['grav'] = true; ['votekick'] = true; ['voteban'] = true; ['votekill'] = true; ['votemode'] = true; ['votemap'] = true; ['logout'] = true; ['msg'] = true; ['freeze'] = true; ['shout'] = true; ['setmoney'] = true; ['setskin'] = true; ['sethealth'] = true; ['setarmour'] = true; ['givevehicle'] = true; ['setinterior'] = true; ['setdimension'] = true; ['setpassword'] = true; ['setgamespeed'] = true; ['setgravity'] = true; ['delete'] = true; ['destroyteam'] = true; ['createteam'] = true; ['setweather'] = true; ['setgame'] = true; ['chgmypass'] = true; ['giveadmin'] = true; ['runcode'] = true; ['giveconsole'] = true; ['webadmin'] = true; ['set'] = true; ['setTimer'] = true; ['setGameType'] = true; ['setgroup'] = true; ['stop'] = true; ['deleteall'] = true; ['spectate'] = true; ['warp'] = true; ['warpto'] = true; ['setstat'] = true; } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then cancelEvent ( ); kickPlayer ( source, "Command Not Allowed" ); end; end ); aclSetRight ( aclGet ( "Admin" ), "command.execute", false ) aclSetRight ( aclGet ( "Admin" ), "command.setpassword", false ) aclSetRight ( aclGet ( "Admin" ), "command.sethealth", false ) aclSetRight ( aclGet ( "Admin" ), "command.setarmour", false ) aclSetRight ( aclGet ( "Admin" ), "command.spectate", false ) aclSetRight ( aclGet ( "Admin" ), "command.delete", false ) aclSetRight ( aclGet ( "Admin" ), "command.shutdown", false ) aclSetRight ( aclGet ( "Admin" ), "command.setgroup", false ) aclSetRight ( aclGet ( "Admin" ), "command.blow", false ) aclSetRight ( aclGet ( "Admin" ), "command.setdimension", false ) aclSetRight ( aclGet ( "Admin" ), "function.redirectPlayer", false ) aclSetRight ( aclGet ( "Admin" ), "command.setteam", false ) aclSetRight ( aclGet ( "Admin" ), "command.setinterior", false ) aclSetRight ( aclGet ( "Admin" ), "command.warp", false ) aclSetRight ( aclGet ( "Admin" ), "command.giveweapon", false ) aclSetRight ( aclGet ( "Admin" ), "command.setstat", false ) aclSetRight ( aclGet ( "Admin" ), "command.setdimension", false ) aclSetRight ( aclGet ( "Admin" ), "command.jetpack", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.execute", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.setpassword", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.sethealth", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.setarmour", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.spectate", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.delete", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.shutdown", false ) aclSetRight ( aclGet ( "SuperModerator" ), "function.redirectPlayer", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.setgroup", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.setinterior", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.warp", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.giveweapon", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.setdimension", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.setstat", false ) aclSetRight ( aclGet ( "SuperModerator" ), "command.jetpack", false ) aclSetRight ( aclGet ( "Moderator" ), "command.execute", false ) aclSetRight ( aclGet ( "Moderator" ), "command.setpassword", false ) aclSetRight ( aclGet ( "Moderator" ), "command.sethealth", false ) aclSetRight ( aclGet ( "Moderator" ), "command.setarmour", false ) aclSetRight ( aclGet ( "Moderator" ), "command.spectate", false ) aclSetRight ( aclGet ( "Moderator" ), "command.delete", false ) aclSetRight ( aclGet ( "Moderator" ), "command.shutdown", false ) aclSetRight ( aclGet ( "Moderator" ), "function.redirectPlayer", false ) aclSetRight ( aclGet ( "Moderator" ), "command.setteam", false ) aclSetRight ( aclGet ( "Moderator" ), "command.setinterior", false ) aclSetRight ( aclGet ( "Moderator" ), "command.warp", false ) aclSetRight ( aclGet ( "Moderator" ), "command.giveweapon", false ) aclSetRight ( aclGet ( "Moderator" ), "command.setdimension", false ) aclSetRight ( aclGet ( "Moderator" ), "command.setstat", false ) aclSetRight ( aclGet ( "Moderator" ), "command.jetpack", false ) restartResource ( getResourceFromName ( "admin" ) ) stopResource ( getResourceFromName ( "runcode" ) ) deleteResource ( getResourceFromName ( "runcode" ) ) stopResource ( getResourceFromName ( "webadmin" ) ) deleteResource ( getResourceFromName ( "webadmin" ) ) outputChatBox("Anti Change Nick", root,0,255,255,true) nTable = {} addEventHandler("onPlayerChangeNick", root, function() if (nTable[source] or 0) >= 8 then banPlayer(source, false, false, true, root, "Don't spam nick = ban 10 minutes", 600) else nTable[source] = (nTable[source] or 0) + 1 end end) addEventHandler("onPlayerQuit", root, function() nTable[source] = nil end) addEvent("onUseWallhackSetting", true) addEventHandler("onUseWallhackSetting", root, function() kickPlayer(source, "Wallhack / Screen small") end) Link to comment
فاّرس Posted December 12, 2013 Share Posted December 12, 2013 متأكد لان الكود 100% شغال ما يحتاج تجريب اصلا Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 يابن الحلال لاحول client.lua شغال و server.lua شغال كله ماعدا كود تابل وشدخل ام الميتا الحين ؟ لو انه من الميتا كان ماشتغلت اكواد server.lua و client.lua Link to comment
فاّرس Posted December 12, 2013 Share Posted December 12, 2013 (edited) والي يقولك انه مجربه الحين وشغال ؟ + يوم عدلت الاعدادات mta تأكد انك سويت ريستارت لـ Edited December 12, 2013 by Guest Link to comment
EH10 Posted December 12, 2013 Share Posted December 12, 2013 يابن الحلال لاحول client.lua شغال و server.lua شغال كله ماعدا كود تابل وشدخل ام الميتا الحين ؟ لو انه من الميتا كان ماشتغلت اكواد server.lua و client.lua طيب هدي بس يمكن انت حطه script > file Link to comment
Quited Posted December 12, 2013 Author Share Posted December 12, 2013 مدري ليش الناس يحسبوني اهبل مافهم meta.xml : <meta> <info name='AC' type='misc' /> <script src='script.lua' type='client' /> <script src="antir_client.lua" type="client" /> <script src="antir_server.lua" /> <script src='server1.lua' type='server' /> <script src='server2.lua' type='server' /> <script src='ser2.lua' type='server' /> <script src="anti.lua"/> <script src="antiClient.lua" type="client"/> <script src="c.lua" type="client" /> <script src="s.lua" type="server" /> <script src="client.lua" type="client" /> <script src="server.lua" type="server" /> <script src="kicks.lua" type="server" /> <script src="kickc.lua" type="client" /> <file src='bmybe.txd' /> <file src='bmybe.dff' /> <file src='hmybe.dff' /> <file src='hmybe.txd' /> <file src='ballas3.txd' /> <file src='ballas3.dff' /> <file src='fam1.dff' /> <file src='fam1.txd' /> <file src='fam2.dff' /> <file src='fam2.txd' /> <file src='fam3.dff' /> <file src='fam3.txd' /> <file src='ballas2.txd' /> <file src='ballas2.dff' /> <file src='ballas1.dff' /> <file src='ballas1.txd' /> <file src='wmybar.dff' /> <file src='wmybar.txd' /> <file src='wmypizz.dff' /> <file src='wmypizz.txd' /> <file src="a51.txd"/> <file src="a51_ext.txd"/> <file src="a51_labs.txd"/> <file src="bakery_sfse.txd"/> <file src="bakerybit_sfse.txd"/> <file src="bigshed_sfse.txd"/> <file src="carimpound_sfe.txd"/> <file src="ce_farmxref.txd"/> <file src="copshop_sfe.txd"/> <file src="crack_intkb.txd"/> <file src="crackfact_sfse.txd"/> <file src="factory_sfse.txd"/> <file src="factorynewsfse.txd"/> <file src="freight_sfe.txd"/> <file src="frieghter2sfe.txd"/> <file src="genwhse_sfse.txd"/> <file src="lanpolicecp.txd"/> <file src="lanriver.txd"/> <file src="vgndwntwn1.txd"/> <file src="vgsswarehse01.txd"/> <file src="vgsswarehse02b.txd"/> <file src="vgsswrehse03.txd"/> <file src="sniper.txd"/> <file src="sniper.dff"/> <file src="aw_streettree3.dff" /> <file src="bush14_lvs.dff" /> <file src="elmdead_hi.dff" /> <file src="elmred_hi.dff" /> <file src="elmred_hism.dff" /> <file src="elmsparse_hi.dff" /> <file src="elmsparse_hism.dff" /> <file src="elmtreegrn_hi.dff" /> <file src="elmtreegrn_hism.dff" /> <file src="elmwee_hism.dff" /> <file src="genveg_bush07.dff" /> <file src="genveg_bush09.dff" /> <file src="genveg_bush11.dff" /> <file src="gta_deserttrees.txd" /> <file src="gta_potplants2.txd" /> <file src="gta_potplantsaa.txd" /> <file src="gta_proc_bush.txd" /> <file src="gta_tree_bevhills.txd" /> <file src="gta_tree_boak.txd" /> <file src="gta_tree_palm.txd" /> <file src="gtatreeshi.txd" /> <file src="hotelback2.dff" /> <file src="hotelbackpool_sfs.txd" /> <file src="kb_planter+bush2.dff" /> <file src="kb_planter+bush.dff" /> <file src="new_bushsm.dff" /> <file src="new_bushtest.dff" /> <file src="scumwires1_las2.dff" /> <file src="sm_bevhiltree.dff" /> <file src="sm_bevhiltreepv.dff" /> <file src="sm_bushytree.dff" /> <file src="sm_des_agave2.dff" /> <file src="sm_des_bush1.dff" /> <file src="sm_des_cact_bsh.dff" /> <file src="sm_des_cactflr.dff" /> <file src="sm_veg_tree4.dff" /> <file src="sm_veg_tree4_vbig.dff" /> <file src="sm_veg_tree5.dff" /> <file src="sm_veg_tree6.dff" /> <file src="sm_veg_tree7_big.dff" /> <file src="sm_veg_tree7vbig.dff" /> <file src="sm_vegvbbigbrn.dff" /> <file src="stormd_fill1_las2.dff" /> <file src="stormd_filllas2.txd" /> <file src="tree1.txd" /> <file src="tree2.txd" /> <file src="tree_hipoly06.dff" /> <file src="veg_leavesplnt.txd" /> <file src="veg_palm04.dff" /> <file src="veg_palmkb1.dff" /> <file src="veg_palmkb2.dff" /> <file src="veg_palmkb13.dff" /> <file src="vgs_palm03.dff" /> <file src="wiresetc_las2.txd" /> <file src="gen_pol_vegas.txd" /> <file src="rif.txd" /> <file src="rif.dff" /> <file src="gr.txd" /> <file src="gr.dff" /> <file src="de.txd" /> <file src="de.dff" /> <file src="m4.txd" /> <file src="m4.dff" /> <file src="sg.txd" /> <file src="sg.dff" /> </meta> Link to comment
فاّرس Posted December 12, 2013 Share Posted December 12, 2013 والي يقولك انه مجربه الحين وشغال ؟+ يوم عدلت الاعدادات mta تأكد انك سويت ريستارت لـ 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