|M.r|LooFe| Posted July 27, 2017 Share Posted July 27, 2017 هلا شباب ممكن كود السرعه مو يلي بالسيارة السرعه بزر من لوحة تضغط على الزر تصير سريع يوم تركض بس مو سرعة عاليةلو موجود عطوني اياه يعني انا عم اصمم في سكربت الجنية الصغيرة هذي لوحة تفتح من اف8 فيها 4 ازرار يوم تضغط على زر اعطاء شخصية تيجيك شخصية الجنية يوم تدوس على اخفاء الاسم يختفي الاسم من عن الجسم يوم تدوس على سرعه ابي يصير سريع + بدي كود انها الشخصية ما حد يقدر ياخذها غير عن طريق هذي الزر او قروب كونسل Link to comment
coNolel Posted July 27, 2017 Share Posted July 27, 2017 أظن setElementVelocity -- صعبة شوي ماقد أشتغلت فيها -- or اليوزفل فنكشن ذا function setElementSpeed(element, unit, speed) if (unit == nil) then unit = 0 end if (speed == nil) then speed = 0 end speed = tonumber(speed) local acSpeed = getElementSpeed(element, unit) if (acSpeed~=false) then -- if true - element is valid, no need to check again local diff = speed/acSpeed if diff ~= diff then return end -- if the number is a 'NaN' return end. local x,y,z = getElementVelocity(element) setElementVelocity(element,x*diff,y*diff,z*diff) return true end return false end ذا كان الطلب الأول addEventHandler("onClientGUIClick", root, ...) local accName = getAccountName ( getPlayerAccount ( السورس حقك ) ) -- get his account name if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then ... end Link to comment
yasin0 Posted July 27, 2017 Share Posted July 27, 2017 (edited) "onClientGUIClick" setElementModel setElementAlpha getAccountName getPlayerAccount aclGetGroup isObjectInACLGroup if واحد يجيب كود اخفاء الاسم Edited July 27, 2017 by yasin0 Link to comment
#BrosS Posted July 27, 2017 Share Posted July 27, 2017 @coNolel setElementVelocity ماتشتغل على اللاعبين وقوله يسوي ترايقر لسيرفر او اذا هدفك تخلط وظائف الكلنت مع سيرفر Link to comment
Mhmd.z Posted July 27, 2017 Share Posted July 27, 2017 setGameSpeed مو متأكد منه لكن جرب , خليه بجهة كلنت علشان تيجي السرعه بس للاعب Link to comment
Abdul KariM Posted July 27, 2017 Share Posted July 27, 2017 @Mhmd.z كذا الاعب بيشوف نفسه مسرع لكن الباقي يشوفونه عادي لازم يسوي ترايقر من السيرفر للكلينت عشان يظهر للكل انه مسرع Link to comment
Ahmed Ly Posted July 27, 2017 Share Posted July 27, 2017 2 hours ago, yasin0 said: "onClientGUIClick" setElementModel setElementAlpha getAccountName getPlayerAccount aclGetGroup isObjectInACLGroup if واحد يجيب كود اخفاء الاسم setPlayerNametagShowing Link to comment
|M.r|LooFe| Posted July 28, 2017 Author Share Posted July 28, 2017 يعني كذا ؟؟ -- كلينت addEventHandler("onClientGUIClick",root, function () if source == sraa then triggerServerEvent("speed",localPlayer) end end ) -- سيرفر addEvent("speed",true) addEventHandler("speed",root, function () setGameSpeed(source, false) outputChatBox("#FFE933[Gne System]: لقد تم اعطائك سرعة", source, 0, 0, 0, true) end ) لو في اغلاط صلحوها 10 hours ago, Ahmed Ly said: setPlayerNametagShowing الاكواد مسوية جاهزة المود كل شي به شغال بس السرعه + ابي كود اني يوم اضغط على زر ايقاف يرجع كل شي للأصل Link to comment
' A F . Posted July 28, 2017 Share Posted July 28, 2017 --- # Client Side addEventHandler ( "onClientGUIClick" , resourceRoot , function ( ) if ( source == sraa ) then triggerServerEvent ( "setSpeed" , localPlayer ) end end ) ; addEvent ( "acceptSpeed" , true ) addEventHandler ( "acceptSpeed" , root , function ( ) setGameSpeed ( 0.3 ); outputChatBox("#FFE933[Gne]: لقد تم اعطائك سرعة", 0, 0, 0, true) end ) ; --- # Server Side addEvent ( "setSpeed" , true ) addEventHandler ( "setSpeed" , root , function ( ) triggerClientEvent ( source , "acceptSpeed" , source ); end ) ; Link to comment
|M.r|LooFe| Posted July 29, 2017 Author Share Posted July 29, 2017 On ٥/١١/١٤٣٨ هـ at 10:05, Default said: --- # Client Side addEventHandler ( "onClientGUIClick" , resourceRoot , function ( ) if ( source == sraa ) then triggerServerEvent ( "setSpeed" , localPlayer ) end end ) ; addEvent ( "acceptSpeed" , true ) addEventHandler ( "acceptSpeed" , root , function ( ) setGameSpeed ( 0.3 ); outputChatBox("#FFE933[Gne]: لقد تم اعطائك سرعة", 0, 0, 0, true) end ) ; --- # Server Side addEvent ( "setSpeed" , true ) addEventHandler ( "setSpeed" , root , function ( ) triggerClientEvent ( source , "acceptSpeed" , source ); end ) ; شكرا Link to comment
|M.r|LooFe| Posted July 29, 2017 Author Share Posted July 29, 2017 بس يا اخوان بدي كود انه الشخصية ما تفتح الا لقروب كونسل ابي كود جاهز لاهنتم Link to comment
' A F . Posted July 29, 2017 Share Posted July 29, 2017 تبي ماحد يقدر يحط شخصية محدةة الا اذا كان كونسل ؟ Link to comment
|M.r|LooFe| Posted July 30, 2017 Author Share Posted July 30, 2017 9 hours ago, Default said: تبي ماحد يقدر يحط شخصية محدةة الا اذا كان كونسل ؟ اي فقط الكونسل لو يجي يحطها من الفري روم يقوله ملكية خاصة او يجي يحطها من لوحة الادمنية يقوله ملكية خاصة Link to comment
' A F . Posted July 30, 2017 Share Posted July 30, 2017 'onElementModelChange' getElementType getElementModel getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup setTimer setElementModel Link to comment
|M.r|LooFe| Posted July 31, 2017 Author Share Posted July 31, 2017 19 hours ago, Default said: 'onElementModelChange' getElementType getElementModel getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup setTimer setElementModel عطني كود كامل يخوي Link to comment
' A F . Posted July 31, 2017 Share Posted July 31, 2017 حآول ونساعدك بالنسبة لي ماراح اعطيك جاهز . 1 Link to comment
|M.r|LooFe| Posted August 1, 2017 Author Share Posted August 1, 2017 8 hours ago, Default said: حآول ونساعدك بالنسبة لي ماراح اعطيك جاهز . محاولتي function informPlayerOnModelChange( ) if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("gold")) then if ( getElementType(source) == "player" ) or getElementModel(source,91) then end addEventHandler("onElementModelChange", root, informPlayerOnModelChange) Link to comment
Mhmd.z Posted August 1, 2017 Share Posted August 1, 2017 function informPlayerOnModelChange(oldSkin) if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("gold")) ~= true then setElementModel(source, oldSkin) outputChatBox("You can't get skin number 91", source) end end addEventHandler("onElementModelChange", root, informPlayerOnModelChange) Link to comment
|M.r|LooFe| Posted August 1, 2017 Author Share Posted August 1, 2017 4 hours ago, Mhmd.z said: function informPlayerOnModelChange(oldSkin) if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("gold")) ~= true then setElementModel(source, oldSkin) outputChatBox("You can't get skin number 91", source) end end addEventHandler("onElementModelChange", root, informPlayerOnModelChange) شكرا رح بجربه Link to comment
Mhmd.z Posted August 1, 2017 Share Posted August 1, 2017 (edited) 40 minutes ago, |M.r|LooFe| said: شكرا رح بجربه سطر 2 بفنكشن جلب حساب الاعب استبدل ذا بلاير بسويرس يعني يصير كذه function informPlayerOnModelChange(oldSkin) if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("gold")) ~= true then setElementModel(source, oldSkin) outputChatBox("You can't get skin number 91", source) end end addEventHandler("onElementModelChange", root, informPlayerOnModelChange) Edited August 1, 2017 by Mhmd.z Link to comment
|M.r|LooFe| Posted August 1, 2017 Author Share Posted August 1, 2017 6 hours ago, Mhmd.z said: سطر 2 بفنكشن جلب حساب الاعب استبدل ذا بلاير بسويرس يعني يصير كذه function informPlayerOnModelChange(oldSkin) if ( getElementType(source) == "player" ) and getElementModel(source) == 91 and isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)), aclGetGroup("gold")) ~= true then setElementModel(source, oldSkin) outputChatBox("You can't get skin number 91", source) end end addEventHandler("onElementModelChange", root, informPlayerOnModelChange) يخوي علفاضي الكود مو شغال جربت ما اشتغللللللللللللللللل Link to comment
' A F . Posted August 1, 2017 Share Posted August 1, 2017 عدل أسلوبك بالكلام . aGroup = "Console" ; -- هنأ القروب الي تبيه يقدر يحط الشخصية aIDSkin = 91 ; -- رقم الشخصية addEventHandler ( "onElementModelChange" , root , function ( aOldModel ) if ( getElementModel ( source ) == aIDSkin ) then if not ( isGuestAccount ( getPlayerAccount ( source ) ) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup(aGroup)) ) then setTimer(setElementModel,50,1,source,aOldModel) outputChatBox("* You Can't use this skin !",source,255,0,0,true) end end end ) ; 1 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