Ismaeel_finer Posted June 3, 2017 Posted June 3, 2017 (edited) السلام عليكم طلب فنكشنات لما لاعب يدخل للماركر تطهر له لوحة ولوحة مثال تكتب فيه رابط اغنية تشتغل اغنية قروب كونسول فقط هم من يمكنهم دخول للماركر وطهور لوحة لديهم وشكرا Edited June 3, 2017 by Ismaeel_finer WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
' A F . Posted June 3, 2017 Posted June 3, 2017 -- # Server Side ; createMarker 'onMarkerHit' getElementType getPlayerAccount + isGuestAccount isObjectInACLGroup triggerClientEvent -- # Client Side ; addEvent addEventHandler guiSetVisible 'onClientGUIClick' guiGetText triggerServerEvent -- اذا تبي الصوت يشتغل للكل -- or playSound Dis ; AF.#0941
#F9SoOoL Posted June 3, 2017 Posted June 3, 2017 -- client side function marker () marker1 = createMarker(x, y, z, 'cylinder', 1.5, 255, 255, 255, 255) end addEventHandler("onClientResourceStart", getRootElement(), marker) function a (thePlayer) if ( source == marker1 ) then triggerServerEvent("check", getLocalPlayer()) end end addEventHandler("onClientMarkerHit", getRootElement(), a) -- server side addEvent("check",true) addEventHandler("check", root, function() local account = getAccountName(getPlayerAccount(source)) if ( isObjectInACLGroup("user." ..account, aclGetGroup("Console")) ) then triggerClientEvent(source, "openwin", source) end end) -- client side -- نفترض اسم لوحتك wnd م رح احط اكواد لوحةة ,, اتوقع م فيهه اسهل منها تسويها addEvent("openwin",true) addEventHandler("openwin", root, function () guiSetVisible(wnd,true) showCursor(true) end) هذا الماركر مع التحقق من جروب الكونسسل ,,
AHMED MOSTAFA Posted June 3, 2017 Posted June 3, 2017 Just now, #F9SoOoL said: -- client side function marker () marker1 = createMarker(x, y, z, 'cylinder', 1.5, 255, 255, 255, 255) end addEventHandler("onClientResourceStart", getRootElement(), marker) function a (thePlayer) if ( source == marker1 ) then triggerServerEvent("check", getLocalPlayer()) end end addEventHandler("onClientMarkerHit", getRootElement(), a) -- server side addEvent("check",true) addEventHandler("check", root, function() local account = getAccountName(getPlayerAccount(source)) if ( isObjectInACLGroup("user." ..account, aclGetGroup("Console")) ) then triggerClientEvent(source, "openwin", source) end end) -- client side -- نفترض اسم لوحتك wnd م رح احط اكواد لوحةة ,, اتوقع م فيهه اسهل منها تسويها addEvent("openwin",true) addEventHandler("openwin", root, function () guiSetVisible(wnd,true) showCursor(true) end) هذا الماركر مع التحقق من جروب الكونسسل ,, اتركه يجرب .. وش استفاد هو كدة ؟ April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
#F9SoOoL Posted June 3, 2017 Posted June 3, 2017 1 minute ago, Killer Project said: اتركه يجرب .. وش استفاد هو كدة ؟ كان بآمكاني يالغغالي أحطلههء الككود كآممل ,, بس حبيت اساعدههء ششوي ويككمل البآققي لحآلههء .. :] آشكرك ع الملآحظةة ي ققلبي :] 1
#STZ Posted June 4, 2017 Posted June 4, 2017 تشغيل الصوت guiGetText -- Edit to get the link playSound --Ex مثال local text = guiGetText(Edit) local sound = playSound(text) setSoundVolume(sound, 0.5)
Ismaeel_finer Posted June 4, 2017 Author Posted June 4, 2017 11 hours ago, Killer Project said: اتركه يجرب .. وش استفاد هو كدة ؟ شكرا اخي بس انا سويته وتفتح نافدة لما ادخل ماركر بس امتع قروب كونسول هاده مشكلتي 13 hours ago, Default said: -- # Server Side ; createMarker 'onMarkerHit' getElementType getPlayerAccount + isGuestAccount isObjectInACLGroup triggerClientEvent -- # Client Side ; addEvent addEventHandler guiSetVisible 'onClientGUIClick' guiGetText triggerServerEvent -- اذا تبي الصوت يشتغل للكل -- or playSound مشكور اخي 11 hours ago, #F9SoOoL said: -- client side function marker () marker1 = createMarker(x, y, z, 'cylinder', 1.5, 255, 255, 255, 255) end addEventHandler("onClientResourceStart", getRootElement(), marker) function a (thePlayer) if ( source == marker1 ) then triggerServerEvent("check", getLocalPlayer()) end end addEventHandler("onClientMarkerHit", getRootElement(), a) -- server side addEvent("check",true) addEventHandler("check", root, function() local account = getAccountName(getPlayerAccount(source)) if ( isObjectInACLGroup("user." ..account, aclGetGroup("Console")) ) then triggerClientEvent(source, "openwin", source) end end) -- client side -- نفترض اسم لوحتك wnd م رح احط اكواد لوحةة ,, اتوقع م فيهه اسهل منها تسويها addEvent("openwin",true) addEventHandler("openwin", root, function () guiSetVisible(wnd,true) showCursor(true) end) هذا الماركر مع التحقق من جروب الكونسسل ,, مشكور اخي 1 hour ago, #STZ said: تشغيل الصوت guiGetText -- Edit to get the link playSound --Ex مثال local text = guiGetText(Edit) local sound = playSound(text) setSoundVolume(sound, 0.5) مشكور اخي WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
Ismaeel_finer Posted June 4, 2017 Author Posted June 4, 2017 مشكورين شباب انا سويته بس لدي مشكلة لما اضيف قروب تاني مع كونسول مايشتغل قروب تاني addEvent("ofa",true) addEventHandler("ofa", root, function() local account = getAccountName(getPlayerAccount(source)) if ( isObjectInACLGroup("user." ..account, aclGetGroup("Console","LY")) ) then triggerClientEvent(source, "open", source) end end) WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
AHMED MOSTAFA Posted June 4, 2017 Posted June 4, 2017 Just now, Ismaeel_finer said: مشكورين شباب انا سويته بس لدي مشكلة لما اضيف قروب تاني مع كونسول مايشتغل قروب تاني addEvent("ofa",true) addEventHandler("ofa", root, function() local account = getAccountName(getPlayerAccount(source)) if ( isObjectInACLGroup("user." ..account, aclGetGroup("Console","LY")) ) then triggerClientEvent(source, "open", source) end end) سوي جدول April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
Ismaeel_finer Posted June 4, 2017 Author Posted June 4, 2017 1 minute ago, Killer Project said: سوي جدول addEventHandler("onResourceStart",resourceRoot,function() for i,v in ipairs ( getElementsByType("player") ) do if not ( isGuestAccount(getPlayerAccount(v)) ) then if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "LY" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Moderator" ) ) then triggerClientEvent(player,"open",player) صح؟ WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
^iiEcoo'x_) Posted June 4, 2017 Posted June 4, 2017 local group = { 'Console', 'Admin' } for _ , v in ipairs ( group ) do - Hashemite Kingdom Of Jordan -
#BrosS Posted June 4, 2017 Posted June 4, 2017 47 minutes ago, Ismaeel_finer said: addEventHandler("onResourceStart",resourceRoot,function() for i,v in ipairs ( getElementsByType("player") ) do if not ( isGuestAccount(getPlayerAccount(v)) ) then if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "LY" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Console" ) ) or isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Moderator" ) ) then triggerClientEvent(player,"open",player) صح؟ يب صح لكن اختصر عليك الامر bGroups = {"Console","Admin","Moderator"} ---- your code for _,v in ipairs(nGroups) do if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( v ) ) ...................... ....... “من أراد الفشل عليه بالنجاح”
Ismaeel_finer Posted June 4, 2017 Author Posted June 4, 2017 6 minutes ago, #BrosS said: يب صح لكن اختصر عليك الامر bGroups = {"Console","Admin","Moderator"} ---- your code for _,v in ipairs(nGroups) do if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( v ) ) ...................... ....... ^_^تمام مشكور WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
Dr.Marco Posted June 4, 2017 Posted June 4, 2017 15 hours ago, Killer Project said: اتركه يجرب .. وش استفاد هو كدة ؟ ع اساس انت يكلير ما تعطي جاهز 1 Signature removed by administrator due to large images
coNolel Posted June 4, 2017 Posted June 4, 2017 39 minutes ago, #BrosS said: يب صح لكن اختصر عليك الامر bGroups = {"Console","Admin","Moderator"} ---- your code for _,v in ipairs(nGroups) do if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( v ) ) ...................... ....... bGroups , nGroups ? IT Projet Manager
#BrosS Posted June 4, 2017 Posted June 4, 2017 13 minutes ago, coNolel said: bGroups , nGroups ? Lol i didn't notice i hate this phone 1 “من أراد الفشل عليه بالنجاح”
AHMED MOSTAFA Posted June 4, 2017 Posted June 4, 2017 Just now, Dr.Marco said: ع اساس انت يكلير ما تعطي جاهز كنت بعطي زمان .. وخصوصاً الحين اذا اعطيت بترك اكواد واقوله يكملها بنفسه 1 April 25, 2016, THE BEGINNING OF MY JOURNEY Check my apps in playStore
Ismaeel_finer Posted June 4, 2017 Author Posted June 4, 2017 1 hour ago, #BrosS said: Lol i didn't notice i hate this phone كودك مشتغلش مختصر ض2 WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
' A F . Posted June 4, 2017 Posted June 4, 2017 @#F9SoOoL اذا احد راح يعطي جاهز الباقي ماراح يساعد لانه بيتعب يكتب له الوظائف ويجيك واحد مسوي فاهم ويعطية الكود متى راح ينتهون الناس الي كذا ؟ 2 Dis ; AF.#0941
w7sH Posted June 4, 2017 Posted June 4, 2017 addEvent("ofa",true) addEventHandler("ofa", root, function() local account = getPlayerAccount (source) if not isGuestAccount ( account ) then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then triggerClientEvent(source, "open", source) end end) جرب كذا
Ismaeel_finer Posted June 4, 2017 Author Posted June 4, 2017 1 hour ago, w7sH said: addEvent("ofa",true) addEventHandler("ofa", root, function() local account = getPlayerAccount (source) if not isGuestAccount ( account ) then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then triggerClientEvent(source, "open", source) end end) جرب كذا مايشتغلش WeLlCoMe NaMe in MTA #Really_N!gga #LIBYA_FREE__) [LY]_Ismaeel__)
Ahmed Ly Posted June 5, 2017 Posted June 5, 2017 -- Server marker = createMarker(...) Groups = {"Console","LY"} addEventHandler("onMarkerHit",root, function (hit) if source == marker and getElementType(hit) == "player" then acc = getAccountName(getPlayerAccount(hit)) for _,v in ipairs(Groups) do if isObjectInACLGroup("user." ..acc,aclGetGroup (v)) then triggerClientEvent(hit,"open",hit) end end end end ) -- Client addEvent("open",true) addEventHandler("open", root, function () guiSetVisible(wnd,true) showCursor(true) end ) 1
w7sH Posted June 5, 2017 Posted June 5, 2017 (edited) 7 hours ago, w7sH said: addEvent("ofa",true) addEventHandler("ofa", root, function() local account = getPlayerAccount (source) if not isGuestAccount ( account ) then if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Admin")) or isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then triggerClientEvent(source, "open", source) end end end) جرب كذا الحين واذا فيه أخطأ قلي وش يطلع فالدي بق نسيت end Edited June 5, 2017 by w7sH
Master_MTA Posted June 5, 2017 Posted June 5, 2017 (edited) 3 hours ago, w7sH said: جرب كذا الحين واذا فيه أخطأ قلي وش يطلع فالدي بق نسيت end ليه مصعب الامور local gr={'Console','Admin','test'} addEvent("ofa",true) addEventHandler("ofa", root, function() local account = getPlayerAccount (source) if isGuestAccount ( account ) then return end for k=1,#gr do if isObjectInACLGroup("user." .. getAccountName(account), aclGetGroup(gr[k])) then triggerClientEvent(source, "open", source) break end end end) كذا الكود ما اخذ مساحه وصار ابسط Edited June 5, 2017 by Master_MTA Skype : 01100001 01101100 01101001 01011111 01101101 01110100 00110001 00111001 00111001 00111001 every thing is gonna be alright every thing is gonna be okay it's gonna be a good good life that's what my therapist say
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