Professional Posted October 20, 2014 Share Posted October 20, 2014 شباب ابي كود مثلا ان اول ما اعمل صيانه لسيرفر لا يمكن فقط غير للي احط سيريالاتهم يدخلو ولي يدخل غيرهم يعطيه كيك وارجو ان تعطوني الفنكشات وهل مره راح اجرب اذا صحيح الكود ولا لا Link to comment
abu5lf Posted October 20, 2014 Share Posted October 20, 2014 ايفينت يختصر عليك كل شي + افضل من الطرد https://wiki.multitheftauto.com/wiki/OnPlayerConnect Link to comment
Simple. Posted October 20, 2014 Share Posted October 20, 2014 addEventHandler( "onPlayerConnect", getRootElement(), function ( ) cancelEvent( true, "هنا الرساله الي تبيها تطلع" ); else if getPlayerSerial(source) == "FE096D43BEE6580C4320AD125551CEF3" then outputChatBox ("Welcome Brah ;D ") end end ) ممآجربته Link to comment
nxFairlywell Posted October 20, 2014 Share Posted October 20, 2014 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
فاّرس Posted October 20, 2014 Share Posted October 20, 2014 -- 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
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