Jump to content

x[ تصحيح ]x كود الهردز


Recommended Posts

شبااب وش

الخطا هون

ملاحظة

صورة لديبيق

p_19448q21.jpg

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
FontLabel = guiCreateFont( "Font.ttf", 13 ) 
  
FontButton = guiCreateFont( "Font.ttf", 13 ) 
  
guiSetFont(show, FontWnd) 
showCursor(false) 
  
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false) 
end 
  
bindKey("F1", "down", 
function () 
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) 
      showCursor(guiGetVisible(GUIEditor.window[1])) 
end 
) 
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
        GUIEditor.window[1] (606, 211, 192, 119, " Mode#Hrdaz BY Marco", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.94) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFDDFE00") 
                       
        GUIEditor.button[1] = guiCreateButton(37, 22, 134, 36 " تشغيل هردز / Start Hadrz", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF6FE00") 
        guiSetFont(GUIEditor.button[1],font) 
        GUIEditor.button[2] = guiCreateButton(38, 67, 133, 36, "إيقاف الهدرز / Stop Hadrz", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF6FE00") 
        guiSetFont(GUIEditor.button[2],font)         
         
 addEventHandler("onClientGUIClick",root, 
    function ( ) 
    if source == GUIEditor.button[1] then 
 if not isPedInVehicle(localPlayer) then return outputChatBox("     # - [ الهدرز | آنت لست داخل الموتر] - #       ",172, 92, 20,true) end; 
    if isElement(sound) then destroyElement(sound) sound = nil end 
    sound = playSound("ksa.mp3",true) 
   elseif source ==  GUIEditor.button[2] then 
    if isElement(sound) then 
    destroyElement(sound) 
       sound = nil 
end 
elseif ( source == GUIEditor.button[2] ) then 
guiSetVisible(GUIEditor.window[1], false) 
showCursor(false) 
        end 
   end 
)  
----- اطفاء الصوت بعد النزول من الموتر 
function carChangeExit(player,seat) 
    if(player == getLocalPlayer()) then 
        car = nil 
        currentVHP = nil 
         stopSound( sound ) 
        destroyElement(sound) 
    end 
end 

Link to comment
شبااب وش

الخطا هون

ملاحظة

صورة لديبيق

p_19448q21.jpg

FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
FontLabel = guiCreateFont( "Font.ttf", 13 ) 
  
FontButton = guiCreateFont( "Font.ttf", 13 ) 
  
guiSetFont(show, FontWnd) 
showCursor(false) 
  
  
function centerWindow(center_window) 
    local screenW,screenH=guiGetScreenSize() 
    local windowW,windowH=guiGetSize(center_window,false) 
    local x,y = (screenW-windowW)/2,(screenH-windowH)/2 
    guiSetPosition(center_window,x,y,false) 
end 
  
bindKey("F1", "down", 
function () 
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) 
      showCursor(guiGetVisible(GUIEditor.window[1])) 
end 
) 
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
        GUIEditor.window[1] (606, 211, 192, 119, " Mode#Hrdaz BY Marco", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.94) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFDDFE00") 
                       
        GUIEditor.button[1] = guiCreateButton(37, 22, 134, 36 " تشغيل هردز / Start Hadrz", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF6FE00") 
        guiSetFont(GUIEditor.button[1],font) 
        GUIEditor.button[2] = guiCreateButton(38, 67, 133, 36, "إيقاف الهدرز / Stop Hadrz", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF6FE00") 
        guiSetFont(GUIEditor.button[2],font)         
         
 addEventHandler("onClientGUIClick",root, 
    function ( ) 
    if source == GUIEditor.button[1] then 
 if not isPedInVehicle(localPlayer) then return outputChatBox("     # - [ الهدرز | آنت لست داخل الموتر] - #       ",172, 92, 20,true) end; 
    if isElement(sound) then destroyElement(sound) sound = nil end 
    sound = playSound("ksa.mp3",true) 
   elseif source ==  GUIEditor.button[2] then 
    if isElement(sound) then 
    destroyElement(sound) 
       sound = nil 
end 
elseif ( source == GUIEditor.button[2] ) then 
guiSetVisible(GUIEditor.window[1], false) 
showCursor(false) 
        end 
   end 
)  
----- اطفاء الصوت بعد النزول من الموتر 
function carChangeExit(player,seat) 
    if(player == getLocalPlayer()) then 
        car = nil 
        currentVHP = nil 
         stopSound( sound ) 
        destroyElement(sound) 
    end 
end 

Link to comment
FontWnd = guiCreateFont( "Font.ttf", 19 ) 
  
  
GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
        GUIEditor.window[1] (606, 211, 192, 119," Mode#Hrdaz BY Marco", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.94) 
        guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFDDFE00") 
                      
        GUIEditor.button[1] = guiCreateButton(37, 22, 134, 36," تشغيل هردز / Start Hadrz", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF6FE00") 
        guiSetFont(GUIEditor.button[1],FontWnd) 
        GUIEditor.button[2] = guiCreateButton(38, 67, 133, 36, "إيقاف الهدرز / Stop Hadrz", false, GUIEditor.window[1]) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFF6FE00") 
        guiSetFont(GUIEditor.button[2],FontWnd)         
        
        guiSetVisible( GUIEditor.window[1],false) 
bindKey("F1", "down", 
function () 
      guiSetVisible(GUIEditor.window[1], not guiGetVisible (GUIEditor.window[1])) 
      showCursor(guiGetVisible(GUIEditor.window[1])) 
end 
) 
  
 addEventHandler("onClientGUIClick",root, 
    function ( ) 
    if source == GUIEditor.button[1] then 
 if not   isPedInVehicle(localPlayer) then return outputChatBox("     # - [ الهدرز | آنت لست داخل الموتر] - #       ",172, 92, 20,true) end; 
    if isElement(sound) then destroyElement(sound) sound = nil end 
    sound = playSound("ksa.mp3",true) 
   elseif source ==  GUIEditor.button[2] then 
    if isElement(sound) then 
    destroyElement(sound) 
       sound = nil 
end 
elseif ( source == GUIEditor.button[2] ) then 
guiSetVisible(GUIEditor.window[1], false) 
showCursor(false) 
        end 
   end 
) 
  

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...