3ssol Posted May 11, 2013 Posted May 11, 2013 السلام عليكم شباب انا بغيت كودد احط فيه سيريالي و اول مايجي اي باند علي هذا السيريال ينفك علي طول ككيف او وش استخدم
K1NG Posted May 11, 2013 Posted May 11, 2013 addEventHandler ( "onBan", root, function ( theBan ) if ( getBanSerial ( theBan ) ) and ( getBanSerial ( theBan ) == "سريالك" ) then removeBan ( theBan ) end end )
Tete omar Posted May 11, 2013 Posted May 11, 2013 addEventHandler ( "onBan", root, function ( theBan ) if ( getBanSerial ( theBan ) ) and ( getBanSerial ( theBan ) == "سريالك" ) then removeBan ( theBan ) end end ) التحقق مرتين ما له اي فايدة
K1NG Posted May 11, 2013 Posted May 11, 2013 addEventHandler ( "onBan", root, function ( theBan ) if ( getBanSerial ( theBan ) ) and ( getBanSerial ( theBan ) == "سريالك" ) then removeBan ( theBan ) end end ) التحقق مرتين ما له اي فايدة لازم تتحقق في البداية إذا كان نوع الباند سريال أو لا .. لأنه لو على طول جبت سريال الباند بدون ما تتحقق من نوعه .. ممكن يحصل بعض الأخطاء لو ماكان نوع الباند سريال وينفكـ الباند .. مثل سالفة التيمات .. لو على طول تجيب تيم اللاعب بدون ما تتحقق إذا كان اللاعب بتيم أو لا رح يصير أخطاء لو ماكان اللاعب بتيم وتنعمل الوظيفة ذذ #
Tete omar Posted May 11, 2013 Posted May 11, 2013 كذا كذا اذا ما كان الباند سيريال رح ترجع فالس يعني رح يكون كمثل الشكل ذا if false == "سيريالك" then اكيد رح يوقف الفنكشن ... Returns a string of the serial if everything was successful, false if invalid arguments are specified or if there was no serial specified for the ban.
3NAD Posted May 11, 2013 Posted May 11, 2013 لم يتم التجربة addEventHandler ( "onBan", root, function ( theBan ) local isSerialBanned = getBanSerial ( theBan ) if isSerialBanned then if isSerialBanned == "Your Serial" then setTimer ( removeBan_, 1000, 1, theBan ) end end end ) removeBan_ = function ( Banned ) removeBan ( Banned ) end
iMr.Dawix~# Posted May 11, 2013 Posted May 11, 2013 %100 اتوقع الكود كذا addEventHandler ( "onPlayerBan", getRootElement(), function (banPointer,responsibleElement) local serial = "your serial" if getPlayerSerial(source) == serial then removeBan(serial) end end) My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
AhmeD~9MoD Posted May 11, 2013 Posted May 11, 2013 مو كنه اسم الموضوع مخالف؟؟ يب المفروض طلب كود إذا احد صكك باند ينفك + اسم الموضوع مايوضح محتواه
PaiN^ Posted May 11, 2013 Posted May 11, 2013 حق كينق تمام, بس فيه التحقق الزايد " Keep Thinking Different . " - Steve Jops -------------------- Don't send me PMs asking for help, I Won't reply !
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