Jump to content

فك الباند


Recommended Posts

Posted

السلام عليكم

شباب انا بغيت كودد

احط فيه سيريالي

و اول مايجي اي باند علي هذا السيريال

ينفك علي طول

ككيف او وش استخدم

Posted
addEventHandler ( "onBan", root, 
    function ( theBan ) 
        if ( getBanSerial ( theBan ) ) and ( getBanSerial ( theBan ) == "سريالك" ) then 
            removeBan ( theBan ) 
        end 
    end 
) 

Posted
addEventHandler ( "onBan", root, 
    function ( theBan ) 
        if ( getBanSerial ( theBan ) ) and ( getBanSerial ( theBan ) == "سريالك" ) then 
            removeBan ( theBan ) 
        end 
    end 
) 

التحقق مرتين ما له اي فايدة

F4MZM4.gif

Posted
addEventHandler ( "onBan", root, 
    function ( theBan ) 
        if ( getBanSerial ( theBan ) ) and ( getBanSerial ( theBan ) == "سريالك" ) then 
            removeBan ( theBan ) 
        end 
    end 
) 

التحقق مرتين ما له اي فايدة

لازم تتحقق في البداية إذا كان نوع الباند سريال أو لا .. لأنه لو على طول جبت سريال الباند بدون ما تتحقق من نوعه .. ممكن يحصل بعض الأخطاء لو ماكان نوع الباند سريال وينفكـ الباند ..

مثل سالفة التيمات .. لو على طول تجيب تيم اللاعب بدون ما تتحقق إذا كان اللاعب بتيم أو لا رح يصير أخطاء لو ماكان اللاعب بتيم وتنعمل الوظيفة ذذ #

Posted

كذا كذا اذا ما كان الباند سيريال رح ترجع فالس يعني رح يكون كمثل الشكل ذا

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.

F4MZM4.gif

Posted

لم يتم التجربة

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 

Posted

%100 اتوقع الكود كذا :roll:

addEventHandler ( "onPlayerBan", getRootElement(), 
function (banPointer,responsibleElement) 
local serial = "your serial" 
if getPlayerSerial(source) == serial then 
removeBan(serial) 
   end 
end)  

My E-mails:

" Manners Maketh Man "

" الأخلاق تصنع الرجل "

░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM !

▂▄▅█████████▅▄▃▂

███████████████████].

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

Posted
مو كنه اسم الموضوع مخالف؟؟

:|

يب المفروض

طلب كود إذا احد صكك باند ينفك

:D

+

اسم الموضوع مايوضح محتواه

Posted

حق كينق تمام, بس فيه التحقق الزايد

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

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...