Doffy Posted February 9, 2017 Share Posted February 9, 2017 ابي اول ما الواحد يفعل القفزة المرتفعة تجيله في البار شات ومو ظابطة ياريت تفيدوني هذي محاولتي --Client addEventHandler("onClientGUIClick",root, function() if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "extrajump", true ) triggerServerEvent("m",localPlayer) end end) --Server addEvent("m",true) addEventHandler("m",root, function() exports["TopBarChat"]:sendClientMessage ("[Ranks System] تم تشغيل القفزة المرتفعة.",150, 255, 150,true,5) end) Link to comment
Adham Posted February 9, 2017 Share Posted February 9, 2017 (edited) غير مجرب كلنت : addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "extrajump", true ) exports["TopBarChat"]:sendClientMessage ("[Ranks System] تم تشغيل القفزة المرتفعة.",255,255,255,true ) end end ) Edited February 9, 2017 by Deativated Link to comment
Doffy Posted February 9, 2017 Author Share Posted February 9, 2017 Just now, Deativated said: غير مجرب كلنت : addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "extrajump", true ) exports["TopBarChat"]:sendClientMessage ("[Ranks System] تم تشغيل القفزة المرتفعة.",255,255,255,true ) end end ) جربت يخوي ما نفع Link to comment
Doffy Posted February 9, 2017 Author Share Posted February 9, 2017 1 minute ago, Deativated said: دي بق ؟ وش يقول c.lua:179: exports : Call to non-running server resource (TopBarChat) [string "?"] Link to comment
Adham Posted February 9, 2017 Share Posted February 9, 2017 addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "extrajump", true ) exports.TopBarChat:sendClientMessage ( "Text", 255,255,255, true ) end end ) افتح مود توب بار شات وتاكد ان اسمه بالظبت TopBarChat Link to comment
Doffy Posted February 9, 2017 Author Share Posted February 9, 2017 3 minutes ago, Deativated said: addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then setWorldSpecialPropertyEnabled ( "extrajump", true ) exports.TopBarChat:sendClientMessage ( "Text", 255,255,255, true ) end end ) افتح مود توب بار شات وتاكد ان اسمه بالظبت TopBarChat اوك شكرا يخوي افدتني الله يعطيك العافية Link to comment
Doffy Posted February 9, 2017 Author Share Posted February 9, 2017 27 minutes ago, Deativated said: حياك الله ^ طيب يخوي مساعدة اخرة ولو ابيه اول ما يضغط علي الزر مره ثانية ابيها توقف القفزة المرتفعة Link to comment
Abu-Solo Posted February 9, 2017 Share Posted February 9, 2017 (edited) غير مجرب addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then setElementData(localPlayer,"Jump",1) setWorldSpecialPropertyEnabled ( "extrajump", true ) exports.TopBarChat:sendClientMessage ( "Text", 255,255,255, true ) if getElementData(localPlayer,"Jump") == 1 then setWorldSpecialPropertyEnabled ( "extrajump", false ) exports.TopBarChat:sendClientMessage ( "Text", 255,255,255, true ) end end ) Edited February 9, 2017 by Abu-Solo Link to comment
Abdul KariM Posted February 9, 2017 Share Posted February 9, 2017 @Abu-Solo موب كل شي داتا الله يهديك addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then local aState = isWorldSpecialPropertyEnabled ( "extrajump" ) setWorldSpecialPropertyEnabled ( "extrajump", not aState ) local aMsg = aState == true and "True" or "False" exports.TopBarChat:sendClientMessage ( aMsg, 255,255,255, true ) end end ) 2 Link to comment
Abu-Solo Posted February 9, 2017 Share Posted February 9, 2017 Just now, Abdul KariM said: @Abu-Solo موب كل شي داتا الله يهديك addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == GUIEditor.button[5] ) then local aState = isWorldSpecialPropertyEnabled ( "extrajump" ) setWorldSpecialPropertyEnabled ( "extrajump", not aState ) local aMsg = aState == true and "True" or "False" exports.TopBarChat:sendClientMessage ( aMsg, 255,255,255, true ) end end ) اللي يعجبني فيك ي عبد الكريم شئ واحد تحب تفيد غيرك 1 Link to comment
SycroX Posted February 9, 2017 Share Posted February 9, 2017 (edited) addEventHandler("onClientGUIClick", guiRoot, function() if source == YourButton then local isWorldSpecialPropertyEnabled = isWorldSpecialPropertyEnabled("extrajump") local switch if isWorldSpecialPropertyEnabled then switch = false else switch = true end setWorldSpecialPropertyEnabled("extrajump", switch) outputChatBox(switch and "on" or "off") end end) اسف عبد الكريم ما شفت ردك Edited February 9, 2017 by #Skrillex 1 Link to comment
Abu-Solo Posted February 9, 2017 Share Posted February 9, 2017 1 minute ago, #Skrillex said: #Deleted اسف عبد الكريم ما شفت ردك طيب كنت خلي الكود عشان نستفيد ذذ 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