MA[S]RIY Posted July 29, 2017 Share Posted July 29, 2017 السلام عليكم الكود دا عملتو addCommandHandler("s7b", function() outputChatBox("# تم تشغيل مود الاختيار العشوائي",root,255,0,0) la3b = getPlayerName ( getRandomPlayer ( ) ) outputChatBox("[ ".. la3b .." #FF0000]تم اختيار الاعب #",root,255,0,0,true) playSoundFrontEnd ( root,45 ) end ) addCommandHandler("s7b1", function() outputChatBox("*",root,255,0,0) playSoundFrontEnd ( root,45 ) end ) addCommandHandler("s7b2", function() outputChatBox("*",root,255,0,0) playSoundFrontEnd ( root,45 ) end ) addCommandHandler("s7b3", function() outputChatBox("*",root,255,0,0) playSoundFrontEnd ( root,45 ) end ) addCommandHandler("S7B", function() local table = { "كيك", "سجن", "الاف 5", "رنت" } outputChatBox (" اختيار جائزه وهي [ ".. table[ math.random ( 1, #table ) ] .." ] مبروووك",root,255,0,0) playSoundFrontEnd ( root,45 ) end ) انا عملت الكود دا بس انا عامل كل حاجه بامر باف8 انا عايز يعملهم كلهم بامر واحد من اف8 بس بين كل واحده منهم فتره 3 ثواني مثلا Link to comment
AliAlanzi Posted July 29, 2017 Share Posted July 29, 2017 setTimer( 3000, 1, source) اتوقع بس اكيد مو اكيد اتوقع كذا ض انا جديد بالبرمجه Link to comment
Mr.CoR Posted July 30, 2017 Share Posted July 30, 2017 كذا يعني ؟ addCommandHandler("s7b", function() local table = { "كيك", "سجن", "الاف 5", "رنت" } outputChatBox("# تم تشغيل مود الاختيار العشوائي",root,255,0,0) la3b = getPlayerName ( getRandomPlayer ( ) ) outputChatBox("[ ".. la3b .." #FF0000]تم اختيار الاعب #",root,255,0,0,true) playSoundFrontEnd ( root,45 ) Timer1 = setTimer( outputChatBox , 3000, 3, "*",root,255,0,0 ) Timer2 = setTimer( playSoundFrontEnd , 3000,3,root,45 ) setTimer( outputChatBox , 10000, 1, " اختيار جائزه وهي [ ".. table[ math.random ( 1, #table ) ] .." ] مبروووك",root,255,0,0 ) setTimer( playSoundFrontEnd , 10000,1,root,45 ) end ) Link to comment
MA[S]RIY Posted July 30, 2017 Author Share Posted July 30, 2017 (edited) انا عدلت عليه طلع لي خطا بالسطر ال 9 addCommandHandler("s7b", function( source ) if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Console")) ) or ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Head.Admin")) ) then local table = { "كيك", "سجن", "الاف 5", "رنت" } exports["TopBarChat"]:sendClientMessage ("تم تشغيل مود الاختيار العشوائي #",root,255,0,0) local la3b = getPlayerName ( getRandomPlayer ( ) ) exports["TopBarChat"]:sendClientMessage ("[ ".. la3b .." #FF0000]تم اختيار الاعب #",root,255,0,0,true) playSoundFrontEnd ( root,45 ) Timer1 = setTimer( exports["TopBarChat"]:sendClientMessage , 5000, 3, "*",root,255,0,0 ) Timer2 = setTimer( playSoundFrontEnd , 5000,3,root,45 ) setTimer( exports["TopBarChat"]:sendClientMessage , 20000, 1, " اختيار جائزه وهي [ ".. table[ math.random ( 1, #table ) ] .." ] مبروووك",root,255,0,0 ) setTimer( playSoundFrontEnd , 20000,1,root,45 ) else outputChatBox("لا تملك الصلاحيات *",source,255,0,0) end end ) Edited July 30, 2017 by MA[S]RIY Link to comment
Rockyz Posted July 30, 2017 Share Posted July 30, 2017 (edited) لاحظت شي في كودك الي فوق ان الفنكشنات سيرفر وفنكشن sendClientMessage كلنت ! Edited July 30, 2017 by #,+( _xiRoc[K]; > Link to comment
Rockyz Posted July 30, 2017 Share Posted July 30, 2017 48 minutes ago, #,+( _xiRoc[K]; > said: لاحظت شي في كودك الي فوق ان الفنكشنات سيرفر وفنكشن sendClientMessage كلنت ! اعذرني ماكنت اعرف للمود كذا الاكواد تصير : local myOwners = { "Console", "Head.Admin", } local mTable = { "كيك", "سجن", "الاف 5", "رنت" }; addCommandHandler ( "s7b", function ( source ) for k, v in ipairs ( myOwners ) do if ( isGuestAccount ( getPlayerAccount ( source ) ) == false ) then local accName = getAccountName ( getPlayerAccount ( source ) ) if ( isObjectInACLGroup ( "user." .. accName, aclGetGroup ( v ) ) ) then exports["TopBarChat"]:sendClientMessage ("تم تشغيل مود الاختيار العشوائي #",root,255,0,0); local la3b = getPlayerName ( getRandomPlayer ( ) ); exports["TopBarChat"]:sendClientMessage ("[ ".. la3b .." #FF0000]تم اختيار الاعب #",root,255,0,0,true); playSoundFrontEnd ( root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "*", root, 255, 0, 0 ) end, 5000, 3 ); setTimer( playSoundFrontEnd , 5000,3,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( " اختيار جائزه وهي [ ".. mTable[ math.random ( #mTable ) ] .." ] مبروووك", root, 255, 0, 0 ) end, 20000, 1, ); setTimer( playSoundFrontEnd , 20000,1,root,45 ); else outputChatBox("لا تملك الصلاحيات *",source,255,0,0); end; end; end; end ); Link to comment
MA[S]RIY Posted July 30, 2017 Author Share Posted July 30, 2017 2 hours ago, #,+( _xiRoc[K]; > said: اعذرني ماكنت اعرف للمود كذا الاكواد تصير : local myOwners = { "Console", "Head.Admin", } local mTable = { "كيك", "سجن", "الاف 5", "رنت" }; addCommandHandler ( "s7b", function ( source ) for k, v in ipairs ( myOwners ) do if ( isGuestAccount ( getPlayerAccount ( source ) ) == false ) then local accName = getAccountName ( getPlayerAccount ( source ) ) if ( isObjectInACLGroup ( "user." .. accName, aclGetGroup ( v ) ) ) then exports["TopBarChat"]:sendClientMessage ("تم تشغيل مود الاختيار العشوائي #",root,255,0,0); local la3b = getPlayerName ( getRandomPlayer ( ) ); exports["TopBarChat"]:sendClientMessage ("[ ".. la3b .." #FF0000]تم اختيار الاعب #",root,255,0,0,true); playSoundFrontEnd ( root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "*", root, 255, 0, 0 ) end, 5000, 3 ); setTimer( playSoundFrontEnd , 5000,3,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( " اختيار جائزه وهي [ ".. mTable[ math.random ( #mTable ) ] .." ] مبروووك", root, 255, 0, 0 ) end, 20000, 1, ); setTimer( playSoundFrontEnd , 20000,1,root,45 ); else outputChatBox("لا تملك الصلاحيات *",source,255,0,0); end; end; end; end ); اخي خليتو كذا local myOwners = { "Console", "Head.Admin", } local mTable = { "مليوون","50الف","5الاف", "رنت", "تاق في الشات لمده 3 ايام", "باند لمده 10 دقائق", "كيك" }; addCommandHandler ( "s7b", function ( source ) for k, v in ipairs ( myOwners ) do if ( isGuestAccount ( getPlayerAccount ( source ) ) == false ) then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( v ) ) ) then exports["TopBarChat"]:sendClientMessage ("*******************************",root,255,0,0); exports["TopBarChat"]:sendClientMessage ("** مسابقه لعبه للسحب العشوائي **",root,255,0,0); setTimer ( function ( ) local la3b = getPlayerName ( getRandomPlayer ( ) ); exports["TopBarChat"]:sendClientMessage ( la3b .." سيتم السحب إلي -",root,255,0,0,true); exports["TopBarChat"]:sendClientMessage ( "والجائرة هي",root,255,0,0,true); end, 4000, 1 ); setTimer( playSoundFrontEnd , 4000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "*", root, 255, 0, 0 ) end, 8000, 1 ); setTimer( playSoundFrontEnd , 8000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "**", root, 255, 0, 0 ) end, 12000, 1 ); setTimer( playSoundFrontEnd , 12000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "***", root, 255, 0, 0 ) end, 16000, 1 ); setTimer( playSoundFrontEnd , 16000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "[ ".. mTable[ math.random ( #mTable ) ] .." ]", root, 255, 0, 0 ) exports["TopBarChat"]:sendClientMessage ( "الف الف مبروك", root, 255, 0, 0 ) end, 20000, 1, ); setTimer( playSoundFrontEnd , 20000,1,root,45 ); else outputChatBox("لا تملك الصلاحيات *",source,255,0,0); end; end; end; end ); يقولي في غلط بالسطر 34 Link to comment
AliAlanzi Posted July 30, 2017 Share Posted July 30, 2017 setTimer( playSoundFrontEnd , 20000,1,root,45 ); ترا كذا بشغل الصوت ما رح يسحب او يسوي شي Link to comment
Rockyz Posted July 30, 2017 Share Posted July 30, 2017 1 hour ago, Ghost-Gamer said: setTimer( playSoundFrontEnd , 20000,1,root,45 ); ترا كذا بشغل الصوت ما رح يسحب او يسوي شي وش تخربط انت 2 hours ago, MARIY said: اخي خليتو كذا local myOwners = { "Console", "Head.Admin", } local mTable = { "مليوون","50الف","5الاف", "رنت", "تاق في الشات لمده 3 ايام", "باند لمده 10 دقائق", "كيك" }; addCommandHandler ( "s7b", function ( source ) for k, v in ipairs ( myOwners ) do if ( isGuestAccount ( getPlayerAccount ( source ) ) == false ) then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( v ) ) ) then exports["TopBarChat"]:sendClientMessage ("*******************************",root,255,0,0); exports["TopBarChat"]:sendClientMessage ("** مسابقه لعبه للسحب العشوائي **",root,255,0,0); setTimer ( function ( ) local la3b = getPlayerName ( getRandomPlayer ( ) ); exports["TopBarChat"]:sendClientMessage ( la3b .." سيتم السحب إلي -",root,255,0,0,true); exports["TopBarChat"]:sendClientMessage ( "والجائرة هي",root,255,0,0,true); end, 4000, 1 ); setTimer( playSoundFrontEnd , 4000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "*", root, 255, 0, 0 ) end, 8000, 1 ); setTimer( playSoundFrontEnd , 8000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "**", root, 255, 0, 0 ) end, 12000, 1 ); setTimer( playSoundFrontEnd , 12000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "***", root, 255, 0, 0 ) end, 16000, 1 ); setTimer( playSoundFrontEnd , 16000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "[ ".. mTable[ math.random ( #mTable ) ] .." ]", root, 255, 0, 0 ) exports["TopBarChat"]:sendClientMessage ( "الف الف مبروك", root, 255, 0, 0 ) end, 20000, 1, ); setTimer( playSoundFrontEnd , 20000,1,root,45 ); else outputChatBox("لا تملك الصلاحيات *",source,255,0,0); end; end; end; end ); يقولي في غلط بالسطر 34 جرب كذا : local myOwners = { "Console", "Head.Admin", } local mTable = { "مليوون","50الف","5الاف", "رنت", "تاق في الشات لمده 3 ايام", "باند لمده 10 دقائق", "كيك" }; addCommandHandler ( "s7b", function ( source ) for k, v in ipairs ( myOwners ) do if ( isGuestAccount ( getPlayerAccount ( source ) ) == false ) then if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( source ) ), aclGetGroup ( v ) ) ) then exports["TopBarChat"]:sendClientMessage ("*******************************",root,255,0,0); exports["TopBarChat"]:sendClientMessage ("** مسابقه لعبه للسحب العشوائي **",root,255,0,0); setTimer ( function ( ) local la3b = getPlayerName ( getRandomPlayer ( ) ); exports["TopBarChat"]:sendClientMessage ( la3b .." سيتم السحب إلي -",root,255,0,0,true); exports["TopBarChat"]:sendClientMessage ( "والجائرة هي",root,255,0,0,true); end, 4000, 1 ); setTimer( playSoundFrontEnd , 4000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "*", root, 255, 0, 0 ) end, 8000, 1 ); setTimer( playSoundFrontEnd , 8000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "**", root, 255, 0, 0 ) end, 12000, 1 ); setTimer( playSoundFrontEnd , 12000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "***", root, 255, 0, 0 ) end, 16000, 1 ); setTimer( playSoundFrontEnd , 16000,1,root,45 ); setTimer ( function ( ) exports["TopBarChat"]:sendClientMessage ( "[ ".. mTable[ math.random ( #mTable ) ] .." ]", root, 255, 0, 0 ) exports["TopBarChat"]:sendClientMessage ( "الف الف مبروك", root, 255, 0, 0 ) end, 20000, 1 ); setTimer( playSoundFrontEnd , 20000,1,root,45 ); else outputChatBox("لا تملك الصلاحيات *",source,255,0,0); end; end; end; 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