Snakegold Posted July 29, 2018 Share Posted July 29, 2018 شباب بدي اخلي السيارة تطير بكوماتد function aicars ( ) if setWorldSpecialPropertyEnabled( "aircars", true ) then outputChatBox ("aircars activated") else outputChatBox ("aircars disactivated") end addCommandHandler ( "flycar", aicars ) Link to comment
SycroX Posted July 29, 2018 Share Posted July 29, 2018 تمام ما انت مسويها وش تبي يعني ؟ Link to comment
Snakegold Posted July 29, 2018 Author Share Posted July 29, 2018 مو شغالة بدي لما اسوي /flycar السيارة تصير تطير و لاما اكتب الكوماند مرة ثاينة الفنكشن يوقف Link to comment
SycroX Posted July 29, 2018 Share Posted July 29, 2018 function aicars() if isWorldSpecialPropertyEnabled("aircars") then outputChatBox ("aircars activated") setWorldSpecialPropertyEnabled("aircars", true) else outputChatBox ("aircars disactivated") setWorldSpecialPropertyEnabled("aircars", false) end end addCommandHandler ("flycar", aicars) Link to comment
Doffy Posted July 29, 2018 Share Posted July 29, 2018 27 minutes ago, #َxLysandeR said: function aicars() if isWorldSpecialPropertyEnabled("aircars") then outputChatBox ("aircars activated") setWorldSpecialPropertyEnabled("aircars", true) else outputChatBox ("aircars disactivated") setWorldSpecialPropertyEnabled("aircars", false) end end addCommandHandler ("flycar", aicars) شسالفة صورك ؟ هههههههههههههههههههههههههههههههههههههههههههههههههههههه Link to comment
SycroX Posted July 29, 2018 Share Posted July 29, 2018 17 minutes ago, #DesTroeyR said: شسالفة صورك ؟ هههههههههههههههههههههههههههههههههههههههههههههههههههههه زهقان من المذاكره و القرف بقا فقط افرفش شويه Link to comment
Snakegold Posted July 29, 2018 Author Share Posted July 29, 2018 (edited) On 7/29/2018 at 20:26, #َxLysandeR said: function aicars() if isWorldSpecialPropertyEnabled("aircars") then outputChatBox ("aircars activated") setWorldSpecialPropertyEnabled("aircars", true) else outputChatBox ("aircars disactivated") setWorldSpecialPropertyEnabled("aircars", false) end end addCommandHandler ("flycar", aicars) كودك مو شغال function aircaron () setWorldSpecialPropertyEnabled("aircars", true) outputChatBox ("aircars activated",0 ,255 ,0) end addCommandHandler ("flycaron", aircaron) function aircaroff () setWorldSpecialPropertyEnabled("aircars", false) outputChatBox ("aircars disactivated",255 ,0 ,0) end addCommandHandler ("flycaroff", aircaroff) خلاص صلحته بس بدي اخليها بس للادمن function aircaron (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? outputChatBox( "Acces denied", thePlayer, 255, 255, 0) end end addCommandHandler( "flycaron", root, aircar ) في خطأ؟؟ Edited July 29, 2018 by Snakegold Link to comment
+Source|> Posted July 29, 2018 Share Posted July 29, 2018 30 minutes ago, Snakegold said: كودك مو شغال function aircaron () setWorldSpecialPropertyEnabled("aircars", true) outputChatBox ("aircars activated",0 ,255 ,0) end addCommandHandler ("flycaron", aircaron) function aircaroff () setWorldSpecialPropertyEnabled("aircars", false) outputChatBox ("aircars disactivated",255 ,0 ,0) end addCommandHandler ("flycaroff", aircaroff) خلاص صلحته بس بدي اخليها بس للادمن function aircaron (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? outputChatBox( "Acces denied", thePlayer, 255, 255, 0) end end addCommandHandler( "flycaron", root, aircar ) في خطأ؟؟ function aircaron (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? outputChatBox( "Acces denied", thePlayer, 255, 255, 0) return end end addCommandHandler( "flycaron", root, aircar ) لازم تستعمل ترايقر Link to comment
Snakegold Posted July 30, 2018 Author Share Posted July 30, 2018 Trigger? ماعرف استعمله و ما اعرف ايش يعني Link to comment
Trefeor Posted July 30, 2018 Share Posted July 30, 2018 الترايقر مثلاُ انت مسوي سكربت بملف سيرفر بس فيه وظيفة بالسكربت حقك بجانب السيرفر تستعمل الترايقر من سيرفر ل كلنت والعكس triggerServerEevnt -- من كلنت لـ سيرفر triggerClientEvent -- من سيرفر لـ كلنت Link to comment
SycroX Posted July 30, 2018 Share Posted July 30, 2018 (edited) 5 hours ago, Snakegold said: كودك مو شغال function aircaron () setWorldSpecialPropertyEnabled("aircars", true) outputChatBox ("aircars activated",0 ,255 ,0) end addCommandHandler ("flycaron", aircaron) function aircaroff () setWorldSpecialPropertyEnabled("aircars", false) outputChatBox ("aircars disactivated",255 ,0 ,0) end addCommandHandler ("flycaroff", aircaroff) خلاص صلحته بس بدي اخليها بس للادمن function aircaron (thePlayer) local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) -- get his account name if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then -- Does he have access to Admin functions? outputChatBox( "Acces denied", thePlayer, 255, 255, 0) end end addCommandHandler( "flycaron", root, aircar ) في خطأ؟؟ ما اخدت بالي معلش اعكس مكان true و false Edited July 30, 2018 by #َxLysandeR Link to comment
Guest Posted July 30, 2018 Share Posted July 30, 2018 function aircaron () setWorldSpecialPropertyEnabled("aircars", false) outputChatBox ("aircars activated",0 ,255 ,0) end addCommandHandler ("flycaron", aircaron) function aircaroff () setWorldSpecialPropertyEnabled("aircars", true) outputChatBox ("aircars disactivated",255 ,0 ,0) end addCommandHandler ("flycaroff", aircaroff) Link to comment
Snakegold Posted July 30, 2018 Author Share Posted July 30, 2018 On 7/30/2018 at 11:25, *AnGeL said: function aircaron () setWorldSpecialPropertyEnabled("aircars", false) outputChatBox ("aircars activated",0 ,255 ,0) end addCommandHandler ("flycaron", aircaron) function aircaroff () setWorldSpecialPropertyEnabled("aircars", true) outputChatBox ("aircars disactivated",255 ,0 ,0) end addCommandHandler ("flycaroff", aircaroff) الكود لحس مخي كيف Aircars desactivated Value: true و Activated Value: false ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟ PS: المود شغال Link to comment
Mr.Mostafa Posted July 30, 2018 Share Posted July 30, 2018 جرب -- # Client addCommandHandler ("flycar", function aicars() triggerServerEvent('checkRankPlayer', localPlayer) end ) addEvent ( "thenTrue", true ) addEventHandler ( "thenTrue", root, function ( ) if isWorldSpecialPropertyEnabled("aircars") then outputChatBox ("aircars disactivated") setWorldSpecialPropertyEnabled("aircars", false) else outputChatBox ("aircars activated") setWorldSpecialPropertyEnabled("aircars", true) end end ) -- # Server local Rank = "Console" --- آلرتبة آلي يشتغل عليه آلآمر addEvent ( "checkRankPlayer", true ) addEventHandler ( "checkRankPlayer", root, function ( p ) local acc = getPlayerAccount ( p ) if acc and not isGuestAccount ( acc ) then if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( Rank ) ) then triggerClientEvent ( p, "thenTrue", resourceRoot ) end end end ) Link to comment
Snakegold Posted July 30, 2018 Author Share Posted July 30, 2018 بكل المودات لازم تكون False قبل True زي هيك outputChatBox ("aircars disactivated") setWorldSpecialPropertyEnabled("aircars", false) else outputChatBox ("aircars activated") setWorldSpecialPropertyEnabled("aircars", true) ?? Link to comment
#DRAGON!FIRE Posted July 30, 2018 Share Posted July 30, 2018 1 hour ago, Mr.Mostafa said: جرب -- # Client addCommandHandler ("flycar", function aicars() triggerServerEvent('checkRankPlayer', localPlayer) end ) addEvent ( "thenTrue", true ) addEventHandler ( "thenTrue", root, function ( ) if isWorldSpecialPropertyEnabled("aircars") then outputChatBox ("aircars disactivated") setWorldSpecialPropertyEnabled("aircars", false) else outputChatBox ("aircars activated") setWorldSpecialPropertyEnabled("aircars", true) end end ) -- # Server local Rank = "Console" --- آلرتبة آلي يشتغل عليه آلآمر addEvent ( "checkRankPlayer", true ) addEventHandler ( "checkRankPlayer", root, function ( p ) local acc = getPlayerAccount ( p ) if acc and not isGuestAccount ( acc ) then if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( Rank ) ) then triggerClientEvent ( p, "thenTrue", resourceRoot ) end end end ) يا عزيزي كودك فيه اغلاط . Snakegold : اكوادك اشتغلت ولا لا ؟ وايش مشكلتك ؟ 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