شبااب وش
الخطا هون
ملاحظة
صورة لديبيق
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