Jump to content

طلب كود


Recommended Posts

الصور تطلع ..

+ استبدل الوظيفة باللي عندكـ

addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if Blips [ source ] then  
            destroyElement ( Blips [ source ] ) 
            Blips [ source ] = nil 
        end 
    end 
) 

source المفروض يكون العنصر

بس انا نسيت = )

Link to comment
  • Replies 69
  • Created
  • Last Reply

Top Posters In This Topic

مشكوررررين

بس عندي مشكله في

هذى كود انه لمن تدخل سيرفر و تكبس على صوره تروح لوحه مع الماوس لكن لمن اكبس اف 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) 

Link to comment
showCrouser(source, false ) -- اخفاء

+

showCrouser(source, false ) -- اظهار

^ خرابيط تآيم :mrgreen:

-- Client Side !

showCursor ( false ) -- إخفاء 
showCursor ( true ) -- إظهار 

-- Server Side !

showCursor ( thePlayer, false ) -- إخفاء 
showCursor ( thePlayer, true ) -- إظهار 

( thePlayer ) ملاحظة : هنا العنصر ليس ثآبت ^

Link to comment
showCrouser(source, false ) -- اخفاء

+

showCrouser(source, false ) -- اظهار

^ خرابيط تآيم :mrgreen:

-- Client Side !

showCursor ( false ) -- إخفاء 
showCursor ( true ) -- إظهار 

-- Server Side !

showCursor ( thePlayer, false ) -- إخفاء 
showCursor ( thePlayer, true ) -- إظهار 

( thePlayer ) ملاحظة : هنا العنصر ليس ثآبت ^

والله ماني حمار اعرف فنكشن الكراوسر بس ووالله كتبته مستعجل جالس اصمم لي سكربت .

Link to comment
showCrouser(source, false ) -- اخفاء

+

showCrouser(source, false ) -- اظهار

^ خرابيط تآيم :mrgreen:

-- Client Side !

showCursor ( false ) -- إخفاء 
showCursor ( true ) -- إظهار 

-- Server Side !

showCursor ( thePlayer, false ) -- إخفاء 
showCursor ( thePlayer, true ) -- إظهار 

( thePlayer ) ملاحظة : هنا العنصر ليس ثآبت ^

والله ماني حمار اعرف فنكشن الكراوسر بس ووالله كتبته مستعجل جالس اصمم لي سكربت .

شفيكـ معصصب ، حَصَل خخير :wink:

Link to comment
وين هـ اللي سويتة #,

showCursor(false,false) 

false ليه حاط مرتين

هو يبغى كود يخفي الماوس وبس ما قال إنه يبغى يقفل او يشغل الأزرار ~ :lol:

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.

Link to comment
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) 

Link to comment
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) 

جرب؟ :roll:

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...