Jump to content

شباب مطلوب كود + مساعدة


Recommended Posts

تحقق اذا كان اللاعب مب مسجل دخوله

سيرفر

  
function(    ) 
    account = getPlayerAccount(source) 
       if isGuestAccount ( account ) then 
          triggerClientEvent 

ارفع اللوحة و حضرتك تقولي

Link to comment
--[[------------------------------------------------- 
Notes: 
  
> This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. 
    To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. 
--]]------------------------------------------------- 
  
  
GUIEditor = { 
    button = {}, 
    staticimage = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(420, 200, 626, 384, "Warps", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetProperty(wnd, "CaptionColour", "FF09F5E2") 
  
        GUIEditor.staticimage[1] = guiCreateStaticImage(9, 19, 607, 355, "Flag.png", false, wnd) 
  
        b1 = guiCreateButton(1, 2, 606, 87, "بداية", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(b1, 0.50) 
  
        GUIEditor.label[1] = guiCreateLabel(4, -95, 592, 50, "بداية -------- Start", false, GUIEditor.button[1]) 
  
        GUIEditor.label[2] = guiCreateLabel(593, 6, 14, 26, "", false, GUIEditor.staticimage[1]) 
        GUIEditor.label[3] = guiCreateLabel(6, 12, 587, 70, "Start ---- بداية", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[3], "sa-gothic") 
        guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[3], "center") 
        GUIEditor.label[4] = guiCreateLabel(6, 141, 587, 65, "دائري ----------- Da2ery", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[4], "sa-gothic") 
        guiLabelSetColor(GUIEditor.label[4], 0, 0, 0) 
        guiLabelSetVerticalAlign(GUIEditor.label[4], "center") 
        GUIEditor.label[5] = guiCreateLabel(1, 270, 592, 85, "Na5el", false, GUIEditor.staticimage[1]) 
        guiSetFont(GUIEditor.label[5], "sa-gothic") 
        guiLabelSetColor(GUIEditor.label[5], 193, 0, 0) 
        guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[5], "center") 
        b2 = guiCreateButton(3, 136, 594, 87, "", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(b2, 0.50) 
        b3 = guiCreateButton(2, 268, 595, 87, "", false, GUIEditor.staticimage[1]) 
        guiSetAlpha(b3, 0.50) 
    end 
),10000,1 ) 
  
  
function onGuiClick(button, state, absoluteX, absoluteY) 
     if source == b1 then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا 
          setElementPosition(localPlayer,1145.22058,-2045.95593,69.00061) -- هنا الاحداثيات  
          setPedRotation(localPlayer,91.98) 
     end 
end 
addEventHandler("onClientGUIClick", root, onGuiClick) 
  
guiSetProperty(b1,"NormalTextColour", "FF2AF209 ")  -- لتليون الزر باللون الاخضر 
  
  
function onGuiClick(button, state, absoluteX, absoluteY) 
     if source == b2 then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا 
          setElementPosition(localPlayer,1761.02942,867.64703,10.43460) -- هنا الاحداثيات  
          setPedRotation(localPlayer,91.98) 
     end 
end 
addEventHandler("onClientGUIClick", root, onGuiClick) 
  
guiSetProperty(b2,"NormalTextColour", "FF2AF209 ")  -- لتليون الزر باللون الاخضر 
  
  
function onGuiClick(button, state, absoluteX, absoluteY) 
     if source == b3 then-- هنا اسم الزر الي اذا ضغطنا عليه ينقلنا 
          setElementPosition(localPlayer,2045.95593,1023.89703,10.67188) -- هنا الاحداثيات  
          setPedRotation(localPlayer,91.98) 
     end 
end 
addEventHandler("onClientGUIClick", root, onGuiClick) 
  
guiSetProperty(b3,"NormalTextColour", "FF2AF209 ")  -- لتليون الزر باللون الاخضر 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == b1 then 
            guiSetVisible( wnd, false ) 
            showCursor( false ) 
            guiSetInputEnabled( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == b2 then 
            guiSetVisible( wnd, false ) 
            showCursor( false ) 
            guiSetInputEnabled( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == b3 then 
            guiSetVisible( wnd, false ) 
            showCursor( false ) 
            guiSetInputEnabled( false ) 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == b1 then 
            playSound("1.mp3") 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == b2 then 
            playSound("1.mp3") 
        end 
    end 
) 
  
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == b3 then 
            playSound("1.mp3") 
        end 
    end 
) 

Edited by Guest
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...