Mr.OppS Posted May 29, 2017 Share Posted May 29, 2017 (edited) السـلآم عليكم , كيف الحال؟ رمضان كريم علينا و عليكمشباب هذا كود حماية من اكواد الهكر فقط سريال واحـ1ـد مسموح يكتب الاكواد ولا يأخذ طرد !! اريـد اسوي تعديل ويصير 2 سـريـال او 3 سـريـالت مسمـوح لـهـم شكراً الكــود Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if getPlayerSerial ( source ) ~= "FG1BF3C8658CC6CBC1E1AG27T647R44" then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end ); Edited May 29, 2017 by King SpY Link to comment
Master_MTA Posted May 29, 2017 Share Posted May 29, 2017 (edited) Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true;} local ser={"FG1BF3C8658CC6CBC1E1AG27T647R44","serial2"} addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if ser[getPlayerSerial(source) ] then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end) جوال اعذرني لو في خطا Edited May 29, 2017 by Master_MTA Link to comment
Mr.OppS Posted May 29, 2017 Author Share Posted May 29, 2017 16 minutes ago, Master_MTA said: Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true;} local ser={"FG1BF3C8658CC6CBC1E1AG27T647R44","serial2"} addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if ser[getPlayerSerial(source) ] then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end) جوال اعذرني لو في خطا ضـبـط شـكـل الأكـواد ,,, و أجـرب الـكـود و النتيـجـة :: لا,يـعـمل Link to comment
Master_MTA Posted May 29, 2017 Share Posted May 29, 2017 Just now, King SpY said: ضـبـط شـكـل الأكـواد ,,, و أجـرب الـكـود و النتيـجـة :: لا,يـعـمل Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ "FG1BF3C8658CC6CBC1E1AG27T647R44", "ser2", "ser3" } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end ); Link to comment
Mr.OppS Posted May 30, 2017 Author Share Posted May 30, 2017 22 hours ago, Master_MTA said: Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ "FG1BF3C8658CC6CBC1E1AG27T647R44", "ser2", "ser3" } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end ); أخــذت طــرد !! حطـيـت السـريـال ! واعطني طرد Link to comment
Master_MTA Posted May 30, 2017 Share Posted May 30, 2017 14 minutes ago, King SpY said: أخــذت طــرد !! حطـيـت السـريـال ! واعطني طرد ظيف سيريالك ب الجدل local ser={ "FG1BF3C8658CC6CBC1E1AG27T647R44", "ser2", "ser3" } Link to comment
Mr.OppS Posted May 30, 2017 Author Share Posted May 30, 2017 (edited) 7 minutes ago, Master_MTA said: ظيف سيريالك ب الجدل local ser={ "FG1BF3C8658CC6CBC1E1AG27T647R44", "ser2", "ser3" } ضـفــت السـريــــال !!! واخذ طـرد Edited May 30, 2017 by King SpY Link to comment
Master_MTA Posted May 30, 2017 Share Posted May 30, 2017 22 minutes ago, King SpY said: ضـفــت السـريــــال !!! واخذ طـرد هممممممم بدل الكود بذا Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ ["FG1BF3C8658CC6CBC1E1AG27T647R44"]=true, ["ser2"]=true, ["ser3"]=true } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end ); اهم شي لا تخلي داخل الجدول ser2 ser3 بدلها بسيريال اي شخص Link to comment
Mr.OppS Posted May 30, 2017 Author Share Posted May 30, 2017 1 minute ago, Master_MTA said: هممممممم بدل الكود بذا Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ ["FG1BF3C8658CC6CBC1E1AG27T647R44"]=true, ["ser2"]=true, ["ser3"]=true } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); kickPlayer ( source, "No Command " ); end end end ); اهم شي لا تخلي داخل الجدول ser2 ser3 بدلها بسيريال اي شخص أي, أكيد ابدلها بالسريـال & كـود جديد اشـتـغـل ,, شكـراً أخـي ؛؛ عـاشيـت أيـدك[B.L-Team]-[Owner] أخـوي وش تـعـنـي هذه ؟؟^^ Link to comment
Master_MTA Posted May 30, 2017 Share Posted May 30, 2017 4 minutes ago, King SpY said: أي, أكيد ابدلها بالسريـال & كـود جديد اشـتـغـل ,, شكـراً أخـي ؛؛ عـاشيـت أيـدك[B.L-Team]-[Owner] أخـوي وش تـعـنـي هذه ؟؟^^ العفو يقلبي الله يسلمك عشت ذي يقلبي تعني تيم برمجة سيرفر Business Life سيرفر جديد من نوعه تابع الموضوع عندنا يقلبي تخطيط لسيرفرر بجيم مود جديد بقسم اللغه العربيه عشان الاخ نصور بيخالفني ثاني لو تكلمت عنه هنا Link to comment
Mr.OppS Posted May 30, 2017 Author Share Posted May 30, 2017 14 minutes ago, Master_MTA said: العفو يقلبي الله يسلمك عشت ذي يقلبي تعني تيم برمجة سيرفر Business Life سيرفر جديد من نوعه تابع الموضوع عندنا يقلبي تخطيط لسيرفرر بجيم مود جديد بقسم اللغه العربيه عشان الاخ نصور بيخالفني ثاني لو تكلمت عنه هنا أهــا ,, دخـلت موضو ع , وفكـرة رائــعــةة _________________________ أخـي , سـوال المود مسوي بـي اذا شخص اخر ! يأخذ طــرد وهـذا الـكـود :- kickPlayer ( source, "No Command " ); اذا ابـدل الـكـود واحط هذا banPlayer (bannedPlayer,false,false,true,root,"No Command") = راخ يأخذ بـانـد؟ او كـود بـة خـطـاء؟؟ Link to comment
Master_MTA Posted May 30, 2017 Share Posted May 30, 2017 1 minute ago, King SpY said: أهــا ,, دخـلت موضو ع , وفكـرة رائــعــةة _________________________ أخـي , سـوال المود مسوي بـي اذا شخص اخر ! يأخذ طــرد وهـذا الـكـود :- kickPlayer ( source, "No Command " ); اذا ابـدل الـكـود واحط هذا banPlayer (bannedPlayer,false,false,true,root,"No Command") = راخ يأخذ بـانـد؟ او كـود بـة خـطـاء؟؟ اسستخدم الوظيفة addBan افضل Link to comment
Mr.OppS Posted May 30, 2017 Author Share Posted May 30, 2017 4 minutes ago, Master_MTA said: اسستخدم الوظيفة addBan افضل أوكـ تـجـربـة .. Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ ["FG1BF3C8658CC6CBC1E1AG27T647R44"]=true, ["ser2"]=true, ["ser3"]=true } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); addBan ( ipToBan, nil, nil, source, "No Command" ) end end end ); أشـعـر بـة شيئ خـطاء # Link to comment
Master_MTA Posted May 30, 2017 Share Posted May 30, 2017 1 minute ago, King SpY said: أوكـ تـجـربـة .. Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ ["FG1BF3C8658CC6CBC1E1AG27T647R44"]=true, ["ser2"]=true, ["ser3"]=true } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); addBan ( ipToBan, nil, nil, source, "No Command" ) end end end ); أشـعـر بـة شيئ خـطاء # Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true; } local ser={ ["FG1BF3C8658CC6CBC1E1AG27T647R44"]=true, ["ser2"]=true, ["ser3"]=true } addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); addBan ( getPlayerIP(source), nil, nil, source, "No Command" ) end end end ); Link to comment
Mr.OppS Posted May 30, 2017 Author Share Posted May 30, 2017 2 minutes ago, Master_MTA said: Command = { ['setpos'] = true; ['st'] = true; ['sw'] = true;}local ser={["FG1BF3C8658CC6CBC1E1AG27T647R44"]=true, ["ser2"]=true, ["ser3"]=true}addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then if not ser[getPlayerSerial ( source )] then cancelEvent ( ); addBan ( getPlayerIP(source), nil, nil, source, "No Command" ) end endend); أهـا أؤكـ بس راح اخليها عن طريـق سـريـاأل أحـسـن ,,getPlayerSerial Link to comment
Master_MTA Posted May 30, 2017 Share Posted May 30, 2017 Just now, King SpY said: أهـا أؤكـ بس راح اخليها عن طريـق سـريـاأل أحـسـن ,,getPlayerSerial اذا بتستعمل السيريال راح يصير كذا addBan ( nil, nil, getPlayerSerial(source), source, "No Command" ) 1 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