3NAD Posted March 4, 2013 Posted March 4, 2013 الصور تطلع .. + استبدل الوظيفة باللي عندكـ addEventHandler ( "onPlayerQuit", root, function ( ) if Blips [ source ] then destroyElement ( Blips [ source ] ) Blips [ source ] = nil end end ) source المفروض يكون العنصر بس انا نسيت = )
yazan Posted March 4, 2013 Author Posted March 4, 2013 مشكوررررين بس عندي مشكله في هذى كود انه لمن تدخل سيرفر و تكبس على صوره تروح لوحه مع الماوس لكن لمن اكبس اف 6 و اختار تروح لوحه و الماوس لا GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_TabPanel[1] = guiCreateTabPanel(5,30,791,561,false) GUIEditor_Tab[1] = guiCreateTab("polec",GUIEditor_TabPanel[1]) po1 = guiCreateStaticImage(16,21,345,257,"yazan/po1.png",false,GUIEditor_Tab[1]) po2 = guiCreateStaticImage(371,22,400,257,"yazan/po2.png",false,GUIEditor_Tab[1]) po3 = guiCreateStaticImage(16,284,345,243,"yazan/po3.png",false,GUIEditor_Tab[1]) po4 = guiCreateStaticImage(369,284,401,243,"yazan/po4.png",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("vagos",GUIEditor_TabPanel[1]) elo1 = guiCreateStaticImage(11,13,367,288,"yazan/elo1.png",false,GUIEditor_Tab[2]) elo2 = guiCreateStaticImage(387,13,393,290,"yazan/elo2.png",false,GUIEditor_Tab[2]) elo3 = guiCreateStaticImage(9,308,368,223,"yazan/elo3.png",false,GUIEditor_Tab[2]) elo4 = guiCreateStaticImage(386,308,395,224,"yazan/elo4.png",false,GUIEditor_Tab[2]) GUIEditor_Tab[3] = guiCreateTab("Grove",GUIEditor_TabPanel[1]) gre1 = guiCreateStaticImage(9,16,377,285,"yazan/gr1.png",false,GUIEditor_Tab[3]) gre2 = guiCreateStaticImage(398,17,383,286,"yazan/gr2.png",false,GUIEditor_Tab[3]) gre4 = guiCreateStaticImage(398,312,384,219,"yazan/gr3.png",false,GUIEditor_Tab[3]) gre3 = guiCreateStaticImage(8,307,378,222,"yazan/gr4.png",false,GUIEditor_Tab[3]) GUIEditor_Tab[4] = guiCreateTab("nta",GUIEditor_TabPanel[1]) nta1 = guiCreateStaticImage(2,6,788,248,"yazan/nta1.png",false,GUIEditor_Tab[4]) nta2 = guiCreateStaticImage(2,268,787,264,"yazan/nta2.png",false,GUIEditor_Tab[4]) showCursor (true) function open() guiSetVisible(GUIEditor_TabPanel[1],not guiGetVisible(GUIEditor_TabPanel[1])) showCursor(guiGetVisible(GUIEditor_TabPanel[1])) guiSetInputEnabled(guiGetVisible(GUIEditor_TabPanel[1])) end bindKey("F2","down",open) function spawnMe(i) triggerServerEvent("spawn",localPlayer,i) guiSetVisible ( GUIEditor_TabPanel[1] ,false) showCursor (false) end addEventHandler("onClientGUIClick",root, function() if source == po1 then spawnMe(1) elseif source == po2 then spawnMe(2) elseif source == po3 then spawnMe(3) elseif source == po4 then spawnMe(4) elseif source == elo1 then spawnMe(5) elseif source == elo2 then spawnMe(6) elseif source == elo3 then spawnMe(7) elseif source == elo4 then spawnMe(8) elseif source == gre1 then spawnMe(9) elseif source == gre2 then spawnMe(10) elseif source == gre3 then spawnMe(11) elseif source == gre4 then spawnMe(12) elseif source == nta1 then spawnMe(13) elseif source == nta2 then spawnMe(14) end end) سبحان الله ---------------------------------- LUA 56%
yazan Posted March 4, 2013 Author Posted March 4, 2013 شلون اخلي ماوس يختفي سبحان الله ---------------------------------- LUA 56%
X-SHADOW Posted March 4, 2013 Posted March 4, 2013 (edited) Thank's TAPL showCursor(true) -- اظهار + showCursor(false) -- اخفاء Edited March 4, 2013 by Guest My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
TAPL Posted March 4, 2013 Posted March 4, 2013 showCrouser(source, false ) -- اخفاء+ showCrouser(source, false ) -- اظهار showCrouser? source?
===|OSAMA|=== Posted March 4, 2013 Posted March 4, 2013 showCrouser(source, false ) -- اخفاء+ showCrouser(source, false ) -- اظهار ^ خرابيط تآيم -- Client Side ! showCursor ( false ) -- إخفاء showCursor ( true ) -- إظهار -- Server Side ! showCursor ( thePlayer, false ) -- إخفاء showCursor ( thePlayer, true ) -- إظهار ( thePlayer ) ملاحظة : هنا العنصر ليس ثآبت ^
X-SHADOW Posted March 4, 2013 Posted March 4, 2013 showCrouser(source, false ) -- اخفاء+ showCrouser(source, false ) -- اظهار ^ خرابيط تآيم -- Client Side ! showCursor ( false ) -- إخفاء showCursor ( true ) -- إظهار -- Server Side ! showCursor ( thePlayer, false ) -- إخفاء showCursor ( thePlayer, true ) -- إظهار ( thePlayer ) ملاحظة : هنا العنصر ليس ثآبت ^ والله ماني حمار اعرف فنكشن الكراوسر بس ووالله كتبته مستعجل جالس اصمم لي سكربت . My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
===|OSAMA|=== Posted March 4, 2013 Posted March 4, 2013 showCrouser(source, false ) -- اخفاء+ showCrouser(source, false ) -- اظهار ^ خرابيط تآيم -- Client Side ! showCursor ( false ) -- إخفاء showCursor ( true ) -- إظهار -- Server Side ! showCursor ( thePlayer, false ) -- إخفاء showCursor ( thePlayer, true ) -- إظهار ( thePlayer ) ملاحظة : هنا العنصر ليس ثآبت ^ والله ماني حمار اعرف فنكشن الكراوسر بس ووالله كتبته مستعجل جالس اصمم لي سكربت . شفيكـ معصصب ، حَصَل خخير
X-SHADOW Posted March 4, 2013 Posted March 4, 2013 ماني معصب يااسامة تعرفني معقوله ماعرف فنكشن الماوس ويعطيك العأفية ~ My ingame nickname : Ops! -DeathMatch GameMode By Ops! : 5%
===|OSAMA|=== Posted March 4, 2013 Posted March 4, 2013 ماني معصب يااسامة تعرفني معقوله ماعرف فنكشن الماوس ويعطيك العأفية ~ الله يعآفيكـ .. = )
yazan Posted March 5, 2013 Author Posted March 5, 2013 ما يخفي !! سبحان الله ---------------------------------- LUA 56%
K1NG Posted March 5, 2013 Posted March 5, 2013 وين هـ اللي سويتة #, showCursor(false,false) false ليه حاط مرتين هو يبغى كود يخفي الماوس وبس ما قال إنه يبغى يقفل او يشغل الأزرار ~ Optional Arguments: toggleControls: A boolean value determining whether to disable controls whilst the cursor is showing. true implies controls are disabled, false implies controls remain enabled.
|Mr|-Talal07-| Posted March 5, 2013 Posted March 5, 2013 اطرح الكود الي تبي تحط فيه اخفاء الماوس عشان نعرف وش نسوي Retired.
yazan Posted March 5, 2013 Author Posted March 5, 2013 GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_TabPaneli = guiCreateTabPanel(5,30,791,561,false) GUIEditor_Tabii = guiCreateTab("polec",GUIEditor_TabPaneli) po1 = guiCreateStaticImage(16,21,345,257,"yazan/po1.png",false,GUIEditor_Tabii) po2 = guiCreateStaticImage(371,22,400,257,"yazan/po2.png",false,GUIEditor_Tabii) po3 = guiCreateStaticImage(16,284,345,243,"yazan/po3.png",false,GUIEditor_Tabii) po4 = guiCreateStaticImage(369,284,401,243,"yazan/po4.png",false,GUIEditor_Tabii) GUIEditor_Tabiii = guiCreateTab("vagos",GUIEditor_TabPaneli) elo1 = guiCreateStaticImage(11,13,367,288,"yazan/elo1.png",false,GUIEditor_Tabiii) elo2 = guiCreateStaticImage(387,13,393,290,"yazan/elo2.png",false,GUIEditor_Tabiii) elo3 = guiCreateStaticImage(9,308,368,223,"yazan/elo3.png",false,GUIEditor_Tabiii) elo4 = guiCreateStaticImage(386,308,395,224,"yazan/elo4.png",false,GUIEditor_Tabiii) GUIEditor_Tabiiii = guiCreateTab("Grove",GUIEditor_TabPaneli) gre1 = guiCreateStaticImage(9,16,377,285,"yazan/gr1.png",false,GUIEditor_Tabiiii) gre2 = guiCreateStaticImage(398,17,383,286,"yazan/gr2.png",false,GUIEditor_Tabiiii) gre4 = guiCreateStaticImage(398,312,384,219,"yazan/gr3.png",false,GUIEditor_Tabiiii) gre3 = guiCreateStaticImage(8,307,378,222,"yazan/gr4.png",false,GUIEditor_Tabiiii) GUIEditor_Tabiiiii = guiCreateTab("nta",GUIEditor_TabPaneli) nta1 = guiCreateStaticImage(2,6,788,248,"yazan/nta1.png",false,GUIEditor_Tabiiiii) nta2 = guiCreateStaticImage(2,268,787,264,"yazan/nta2.png",false,GUIEditor_Tabiiiii) showCursor ( true ) function open() guiSetVisible(GUIEditor_TabPaneli,not guiGetVisible(GUIEditor_TabPaneli)) showCursor(guiGetVisible(GUIEditor_TabPaneli)) guiSetInputEnabled(guiGetVisible(GUIEditor_TabPaneli)) end bindKey("F6","down",open) function spawnMe(i) triggerServerEvent("spawn",localPlayer,i) guiSetVisible ( GUIEditor_TabPaneli ,false) showCursor (false) end addEventHandler("onClientGUIClick",root, function() if source == po1 then spawnMe(1) elseif source == po2 then spawnMe(2) elseif source == po3 then spawnMe(3) elseif source == po4 then spawnMe(4) elseif source == elo1 then spawnMe(5) elseif source == elo2 then spawnMe(6) elseif source == elo3 then spawnMe(7) elseif source == elo4 then spawnMe(8) elseif source == gre1 then spawnMe(9) elseif source == gre2 then spawnMe(10) elseif source == gre3 then spawnMe(11) elseif source == gre4 then spawnMe(12) elseif source == nta1 then spawnMe(13) elseif source == nta2 then spawnMe(14) end end) سبحان الله ---------------------------------- LUA 56%
iMr.Dawix~# Posted March 6, 2013 Posted March 6, 2013 GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_TabPaneli = guiCreateTabPanel(5,30,791,561,false) GUIEditor_Tabii = guiCreateTab("polec",GUIEditor_TabPaneli) po1 = guiCreateStaticImage(16,21,345,257,"yazan/po1.png",false,GUIEditor_Tabii) po2 = guiCreateStaticImage(371,22,400,257,"yazan/po2.png",false,GUIEditor_Tabii) po3 = guiCreateStaticImage(16,284,345,243,"yazan/po3.png",false,GUIEditor_Tabii) po4 = guiCreateStaticImage(369,284,401,243,"yazan/po4.png",false,GUIEditor_Tabii) GUIEditor_Tabiii = guiCreateTab("vagos",GUIEditor_TabPaneli) elo1 = guiCreateStaticImage(11,13,367,288,"yazan/elo1.png",false,GUIEditor_Tabiii) elo2 = guiCreateStaticImage(387,13,393,290,"yazan/elo2.png",false,GUIEditor_Tabiii) elo3 = guiCreateStaticImage(9,308,368,223,"yazan/elo3.png",false,GUIEditor_Tabiii) elo4 = guiCreateStaticImage(386,308,395,224,"yazan/elo4.png",false,GUIEditor_Tabiii) GUIEditor_Tabiiii = guiCreateTab("Grove",GUIEditor_TabPaneli) gre1 = guiCreateStaticImage(9,16,377,285,"yazan/gr1.png",false,GUIEditor_Tabiiii) gre2 = guiCreateStaticImage(398,17,383,286,"yazan/gr2.png",false,GUIEditor_Tabiiii) gre4 = guiCreateStaticImage(398,312,384,219,"yazan/gr3.png",false,GUIEditor_Tabiiii) gre3 = guiCreateStaticImage(8,307,378,222,"yazan/gr4.png",false,GUIEditor_Tabiiii) GUIEditor_Tabiiiii = guiCreateTab("nta",GUIEditor_TabPaneli) nta1 = guiCreateStaticImage(2,6,788,248,"yazan/nta1.png",false,GUIEditor_Tabiiiii) nta2 = guiCreateStaticImage(2,268,787,264,"yazan/nta2.png",false,GUIEditor_Tabiiiii) showCursor ( true ) function open() guiSetVisible(GUIEditor_TabPaneli,not guiGetVisible(GUIEditor_TabPaneli)) showCursor(guiGetVisible(GUIEditor_TabPaneli)) guiSetInputEnabled(guiGetVisible(GUIEditor_TabPaneli)) end bindKey("F6","down",open) function spawnMe(i) triggerServerEvent("spawn",localPlayer,i) guiSetVisible ( GUIEditor_TabPaneli ,false) showCursor (false) end addEventHandler("onClientGUIClick",root, function() if source == po1 then spawnMe(i) elseif source == po2 then spawnMe(i) elseif source == po3 then spawnMe(i) elseif source == po4 then spawnMe(i) elseif source == elo1 then spawnMe(i) elseif source == elo2 then spawnMe(i) elseif source == elo3 then spawnMe(i) elseif source == elo4 then spawnMe(i) elseif source == gre1 then spawnMe(i) elseif source == gre2 then spawnMe(i) elseif source == gre3 then spawnMe(i) elseif source == gre4 then spawnMe(i) elseif source == nta1 then spawnMe(i) elseif source == nta2 then spawnMe(i) end end) GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_TabPaneli = guiCreateTabPanel(5,30,791,561,false) GUIEditor_Tabii = guiCreateTab("polec",GUIEditor_TabPaneli) po1 = guiCreateStaticImage(16,21,345,257,"yazan/po1.png",false,GUIEditor_Tabii) po2 = guiCreateStaticImage(371,22,400,257,"yazan/po2.png",false,GUIEditor_Tabii) po3 = guiCreateStaticImage(16,284,345,243,"yazan/po3.png",false,GUIEditor_Tabii) po4 = guiCreateStaticImage(369,284,401,243,"yazan/po4.png",false,GUIEditor_Tabii) GUIEditor_Tabiii = guiCreateTab("vagos",GUIEditor_TabPaneli) elo1 = guiCreateStaticImage(11,13,367,288,"yazan/elo1.png",false,GUIEditor_Tabiii) elo2 = guiCreateStaticImage(387,13,393,290,"yazan/elo2.png",false,GUIEditor_Tabiii) elo3 = guiCreateStaticImage(9,308,368,223,"yazan/elo3.png",false,GUIEditor_Tabiii) elo4 = guiCreateStaticImage(386,308,395,224,"yazan/elo4.png",false,GUIEditor_Tabiii) GUIEditor_Tabiiii = guiCreateTab("Grove",GUIEditor_TabPaneli) gre1 = guiCreateStaticImage(9,16,377,285,"yazan/gr1.png",false,GUIEditor_Tabiiii) gre2 = guiCreateStaticImage(398,17,383,286,"yazan/gr2.png",false,GUIEditor_Tabiiii) gre4 = guiCreateStaticImage(398,312,384,219,"yazan/gr3.png",false,GUIEditor_Tabiiii) gre3 = guiCreateStaticImage(8,307,378,222,"yazan/gr4.png",false,GUIEditor_Tabiiii) GUIEditor_Tabiiiii = guiCreateTab("nta",GUIEditor_TabPaneli) nta1 = guiCreateStaticImage(2,6,788,248,"yazan/nta1.png",false,GUIEditor_Tabiiiii) nta2 = guiCreateStaticImage(2,268,787,264,"yazan/nta2.png",false,GUIEditor_Tabiiiii) showCursor ( true ) function open() guiSetVisible(GUIEditor_TabPaneli,not guiGetVisible(GUIEditor_TabPaneli)) showCursor(guiGetVisible(GUIEditor_TabPaneli)) guiSetInputEnabled(guiGetVisible(GUIEditor_TabPaneli)) end bindKey("F6","down",open) function spawnMe(i) triggerServerEvent("spawn",localPlayer,i) guiSetVisible ( GUIEditor_TabPaneli ,false) showCursor (false) end addEventHandler("onClientGUIClick",root, function() if source == po1 then spawnMe(i) elseif source == po2 then spawnMe(i) elseif source == po3 then spawnMe(i) elseif source == po4 then spawnMe(i) elseif source == elo1 then spawnMe(i) elseif source == elo2 then spawnMe(i) elseif source == elo3 then spawnMe(i) elseif source == elo4 then spawnMe(i) elseif source == gre1 then spawnMe(i) elseif source == gre2 then spawnMe(i) elseif source == gre3 then spawnMe(i) elseif source == gre4 then spawnMe(i) elseif source == nta1 then spawnMe(i) elseif source == nta2 then spawnMe(i) end end) جرب؟ My E-mails: [ [email protected] ],[ [email protected] ],[ [email protected] ] " Manners Maketh Man " " الأخلاق تصنع الرجل " ░░░░░███████ ]▄▄▄▄▄▄▄▄ BooM ! ▂▄▅█████████▅▄▃▂ ███████████████████]. ◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤
yazan Posted March 6, 2013 Author Posted March 6, 2013 وش عيرت بل زبط ؟؟ سبحان الله ---------------------------------- LUA 56%
yazan Posted March 6, 2013 Author Posted March 6, 2013 اولن ما لك دخل + انت اصلن ما لك دخل في برمجة + انا تعبت في الكود يجي واحد يضيف سطر مشان اكتب اسمك مثل اقول اسكت اسكت سبحان الله ---------------------------------- LUA 56%
TAPL Posted March 6, 2013 Posted March 6, 2013 احذف ذا السطر و جرب guiSetInputEnabled(guiGetVisible(GUIEditor_TabPaneli))
yazan Posted March 6, 2013 Author Posted March 6, 2013 مشكور صلح سبحان الله ---------------------------------- LUA 56%
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