Jump to content

Cheaked Serial !


Recommended Posts

السلآمم عليكمم

بالله وين الخطأ هنآ بالكود ؟

= ]

MySerial = "F72251F4F7A092AD1DA4956776E7A6A2" 
  
addEventHandler("onPlayerJoin", root, 
function() 
          if getPlayerSerial(source) == MySerial then 
               outputChatBox("#00ff00* Serial Was Cheaked it is Mr.Raybak !", root, 255, 0, 0, true) 
          else 
               outputChatBox("#00ff00* Serial is Not Cheaked !", root, 255, 0, 0, true) 
               banPlayer(source, false, false, true, root, ":D") 
          end 
     end 
) 

Link to comment
addEventHandler("onPlayerJoin", root, 
function() 
    if getPlayerName(source) == "Mr.Raybak" then 
        if ( getPlayerSerial(source) == "F72251F4F7A092AD1DA4956776E7A6A2") then 
            outputChatBox("#00ff00* Serial Was Cheaked it is Mr.Raybak !", root, 255, 0, 0, true) 
        else 
            outputChatBox("* [ " .. getPlayerName(source) .. " ] is Not Mr.Raybak !", root, 255, 0, 0, true) 
            banPlayer(source, false, false, true, root, ":D") 
        end 
    end 
end) 

الخطأ : لم يتم التحقق من اسم الاعب في الاصل

Link to comment
addEventHandler("onPlayerJoin", root, 
function(player) 
    if ( getPlayerSerial(player) == "F72251F4F7A092AD1DA4956776E7A6A2") then 
        outputChatBox("#00ff00* Serial Was Cheaked it is Mr.Raybak !", root, 255, 0, 0, true) 
    else 
        outputChatBox("#00ff00* Serial is Not Cheaked !", root, 255, 0, 0, true) 
        banPlayer(player, false, false, true, root, ":D") 
    end 
end) 

اخوي جرب يمكن كذا

:\

لم تتم التجربه

player ??!!

يصير خاص باللاعب player أخي كل حدث وله معرّفات خآصة به ، مهو كل فنكشن تحط فيه ..

المصدر هو اللاعب الي دخل "onPlayerJoin" هنا عندكـ بحدث

وبالنسبة لكودهـ هو صحيح ، لكن اي واحد يدخل بغير سرياله ياكل باند ,

لزوم يسويه حسب شي ثاني .. مثلاً إذا واحد دخل بنفس نكه وبسريال ثاني ياكل باند ، مثل كذا ,

-- Server Side !

MySerial = "F72251F4F7A092AD1DA49056776E7A6A2" 
MyNick = "Your Nick Name" 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        if ( getPlayerName ( source ) == MyNick ) then 
            if ( getPlayerSerial ( source ) == MySerial ) then 
                outputChatBox ( "#00ff00* Serial Was Cheaked it is Mr.Raybak !", root, 255, 0, 0, true ) 
            else 
                outputChatBox ( "#00ff00* Serial is Not Cheaked !", root, 255, 0, 0, true ) 
                banPlayer ( source, false, false, true, root, ":D" ) 
            end 
        end 
    end 
) 

تنويه للمشرف ، عناد مدري شسمة خخ : حاول تفرق بين تصحيح كود وطلب كود ، ولاتحذف ردود بكيفك :lol:

Link to comment

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