Jump to content

مطلوب كود


Recommended Posts

شباب ابي كود مثلا ان اول ما اعمل صيانه لسيرفر

لا يمكن فقط غير للي احط سيريالاتهم يدخلو ولي يدخل غيرهم يعطيه كيك

وارجو ان تعطوني الفنكشات وهل مره راح اجرب اذا صحيح الكود ولا لا

Link to comment
addEventHandler( "onPlayerConnect", getRootElement(), 
    function ( ) 
            cancelEvent( true, "هنا الرساله الي تبيها تطلع" ); 
else 
if getPlayerSerial(source) == "FE096D43BEE6580C4320AD125551CEF3" then 
  
        outputChatBox ("Welcome Brah ;D ") 
        end 
    end 
) 

ممآجربته :roll:

Link to comment
addEventHandler( "onPlayerConnect", getRootElement(), 
    function ( ) 
            cancelEvent( true, "هنا الرساله الي تبيها تطلع" ); 
else 
if getPlayerSerial(source) == "FE096D43BEE6580C4320AD125551CEF3" then 
  
        outputChatBox ("Welcome Brah ;D ") 
        end 
    end 
) 

ممآجربته

لول

else في السطر الرابع وش تسوي

مافيه شرط عشان تعكسه # !

addEventHandler('onPlayerConnect', root, function ( pN, IP, NAME ) 
         if getPlayerSerial ( getPlayerFromName(NAME) ) ~= "سريالك" then 
         cancelEvent(  true, "You can't join to this server ") 
     end 
         if getPlayerSerial ( getPlayerFromName(NAME) ) == "سريالك" then 
         cancelEvent( false ) 
     end 
end   ) 
  

جرب ورد لي خبر وش صار معك ,

Link to comment

-- Server Side # 
local serials = { 
    ['serial'] = true, 
    ['serial'] = true, 
    ['serial'] = true 
} 
  
addEventHandler( 'onPlayerConnect', root, function ( ) 
    if serials [ getPlayerSerial ( source ) ] then return end 
        cancelEvent ( true, "You can't join to this server now!" ) 
    end 
) 
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...