Jump to content

تمت الافادة شكرا لكم


Recommended Posts

هل هذا صحيح او لا
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) 
  if ( source == GUIEditor.button[4] ) then 
    setPedArmor ( player, 100 ) 
   end 
end ) 

ابي اخليه لما الاعب يضغط على زر يعيطه درع 100 :|

لازم تريقر

Edited by Guest
Link to comment

-- # Client Side : 
  
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) 
  if ( source == GUIEditor.button[4] ) then 
triggerServerEvent ( 'GiveIi', localPlayer ) 
   end 
end ) 
  
-- # Server Side : 
  
addEvent ( 'GiveIi', true ) 
addEventHandler ( 'GiveIi', resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
end ) 
Edited by Guest
Link to comment
-- # Client Side : 
  
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) 
  if ( source == GUIEditor.button[4] ) then 
triggerServerEvent ( 'GiveIi', localPlayer ) 
   end 
end ) 
  
-- # Server Side : 
  
addEvent ( 'GiveIi', true ) 
addEventHandler ( 'GiveIi', resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
   end 
end ) 

فيه اند زايده

Link to comment
-- # Client Side : 
  
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) 
  if ( source == GUIEditor.button[4] ) then 
triggerServerEvent ( 'GiveIi', localPlayer ) 
   end 
end ) 
  
-- # Server Side : 
  
addEvent ( 'GiveIi', true ) 
addEventHandler ( 'GiveIi', resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
end ) 

شكرا لك على المساعدة

Link to comment

سويت اللوحة وخلصت لك بها عدة مشاكل

اللوحة تشتغل وتيجي امامي بالشات وما تروح

والدرع ما شغال

اكواد كلينت

  
GUIEditor_TabPanel = {} 
GUIEditor_Tab = {} 
GUIEditor_Button = {} 
GUIEditor_Memo = {} 
GUIEditor_Label = {} 
  
  
  
  
  
  
  
  
GUIEditor = { 
    button = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetAlpha(wnd, 1.00) 
  
        GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") 
        GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") 
        GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") 
        GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") 
        GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") 
        GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") 
        GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd)     
    end 
) 
  
  
  
  
  
  
  
         
         
     
  function OpenWin() 
   guiSetVisible(wnd,not guiGetVisible(wnd)) 
 showCursor(guiGetVisible(wnd)) 
  
end 
bindKey("F5", "down", OpenWin) 
guiSetVisible( wnd, false ) 
  
addEventHandler ( "onClientGUIClick", root, 
function (  ) 
if source == GUIEditor.button[1] then 
triggerServerEvent("kill",getLocalPlayer())  
end 
end 
) 
  
addEventHandler("onClientGUIClick",resourceRoot, 
function ( ) 
if ( source == GUIEditor.button[5] ) then 
triggerServerEvent("Pro",localPlayer) 
end 
 end) 
  
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) 
  if ( source == GUIEditor.button[3] ) then 
triggerServerEvent ( 'GiveIi', localPlayer ) 
   end 
end ) 
  
  
addEventHandler ("onClientGUIClick",root,function () 
    if ( source == GUIEditor.button[6] ) then 
    if isChatVisible then 
        showChat (false) 
        isChatVisible = false 
            else 
        showChat (true) 
        isChatVisible = true 
    end 
    end 
end) 
  
addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) 
  if ( source == GUIEditor.button[2] ) then 
       executeCommandHandler('report') 
   end 
end ) 
  
  

اكواد سيرفر

addEvent("kill", true) 
addEventHandler("kill", root, 
 function  (  ) 
  killPed ( client ) 
end 
) 
  
addEvent("Pro",true)  
 addEventHandler("Pro",root, function ( ) 
 if ( isPedHeadless(source) ) then 
 setPedHeadless(source,false) 
 else 
 setPedHeadless(source,true) 
 end 
 end) 
  
addEvent ( 'GiveIi', true ) 
addEventHandler ( 'GiveIi', resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
end ) 
  
  

Link to comment

-- Client Side 
  
GUIEditor = { 
    button = {}, 
    label = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetAlpha(wnd, 1.00) 
  
        GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") 
        GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") 
        GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") 
        GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") 
        GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") 
        GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") 
        GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd)     
    end 
) 
  
  
  
  
  
  
 guiSetVisible( wnd, false ) 
        
        
    
  function OpenWin() 
   guiSetVisible(wnd,not guiGetVisible(wnd)) 
 showCursor(guiGetVisible(wnd)) 
  
end 
bindKey("F5", "down", OpenWin) 
  
  
addEventHandler ( "onClientGUIClick", GUIEditor.button[1], 
    function (  ) 
           triggerServerEvent("kill", getLocalPlayer()) 
    end 
) 
  
addEventHandler("onClientGUIClick", GUIEditor.button[5], 
  function ( ) 
       triggerServerEvent( "Pro", getLocalPlayer()) 
   end 
) 
  
addEventHandler ( 'onClientGUIClick', GUIEditor.button[3],  
function ( ) 
           triggerServerEvent( "GiveIi", getLocalPlayer()) 
      end  
) 
  
  
addEventHandler ("onClientGUIClick", GUIEditor.button[6],  
     function () 
            showChat(not isChatVisible()) 
      end 
) 

--Server Side ! 
addEvent("kill", true) 
addEventHandler("kill", root, 
 function  (  ) 
  killPed ( source ) 
end 
) 
  
addEvent("Pro",true) 
 addEventHandler("Pro",root, function ( ) 
 if ( isPedHeadless(source) ) then 
 setPedHeadless(source,false) 
 else 
 setPedHeadless(source,true) 
 end 
 end) 
  
addEvent ( 'GiveIi', true ) 
addEventHandler ( 'GiveIi', root, function (  ) 
setPedArmor ( source, 100 ) 
end ) 

جرب

Link to comment

جرب ؟

    -- Client Side 
      
    GUIEditor = { 
        button = {}, 
        label = {} 
    } 
    addEventHandler("onClientResourceStart", resourceRoot, 
        function() 
            wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) 
            guiWindowSetSizable(wnd, false) 
            guiSetAlpha(wnd, 1.00) 
            guiSetVisible( wnd, false ) 
            GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) 
            guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") 
            GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) 
            guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") 
            GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) 
            guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") 
            GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) 
            guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") 
            GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) 
            guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") 
            GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) 
            guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") 
            GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd)     
        end 
    ) 
      
      
      
      
      
      
  
            
            
        
    bindKey("F5", "down", function () 
        guiSetVisible(wnd,not guiGetVisible(wnd)) 
            showCursor(guiGetVisible(wnd)) 
         end 
    ) 
      
      
    addEventHandler ( "onClientGUIClick", root, 
        function (  ) 
            if source == GUIEditor.button[1] then 
               triggerServerEvent("kill", getLocalPlayer()) 
            end    
        end 
    ) 
      
    addEventHandler ( "onClientGUIClick", root, 
        function (  ) 
            if source == GUIEditor.button[5] then 
                triggerServerEvent( "Pro", getLocalPlayer()) 
            end 
        end 
    ) 
      
    addEventHandler ( "onClientGUIClick", root, 
        function (  ) 
            if source == GUIEditor.button[3] then 
               triggerServerEvent( "GiveIi", getLocalPlayer()) 
            end 
        end 
    ) 
      
      
    addEventHandler ( "onClientGUIClick", root, 
        function (  ) 
            if source == GUIEditor.button[6] then 
                showChat(not isChatVisible()) 
            end 
        end 
    ) 
Link to comment

-- # Client Side : 
  
Schat = false 
  
GUIEditor = { 
    button = {}, 
    label = {} 
} 
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) 
        wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetAlpha(wnd, 1.00) 
        guiSetVisible ( wnd, false ) 
        GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") 
        GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") 
        GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") 
        GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") 
        GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") 
        GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") 
        GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd)     
    end 
) 
  
  
        
    
bindKey( "F5", "down", function (   ) 
 guiSetVisible( wnd, not guiGetVisible( wnd ) ) 
  showCursor( guiGetVisible ( wnd ) ) 
end ) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    if ( source == GUIEditor.button[1] ) then 
        triggerServerEvent("kill", localPlayer) 
  elseif ( source == GUIEditor.button[2] ) then 
       executeCommandHandler( "report" ) 
    elseif ( source == GUIEditor.button[5] ) then 
        triggerServerEvent( "Pro", localPlayer ) 
    elseif ( source == GUIEditor.button[3] ) then 
        triggerServerEvent ( "GiveIi", localPlayer ) 
    elseif ( source == GUIEditor.button[4] ) then 
        triggerServerEvent ( "GiveHel", localPlayer ) 
    elseif ( source == GUIEditor.button[6] ) then 
     if ( Schat == false ) then 
      showChat ( false ) 
     Schat = true 
    else 
     showChat ( true ) 
    Schat = false 
  end 
 end 
end ) 

-- # Server Side : 
  
addEvent ( "GiveIi", true ) 
addEvent ( "Pro", true ) 
addEvent ( "kill", true ) 
addEvent ( "GiveHel", true ) 
  
addEventHandler( "kill", root, function (  ) 
killPed ( source ) 
end ) 
  
  
addEventHandler("Pro", root, function ( ) 
 if ( isPedHeadless ( source ) ) then 
 setPedHeadless ( source, false ) 
else 
 setPedHeadless ( source, true ) 
 end 
end ) 
  
addEventHandler ( "GiveIi", resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
end ) 
  
addEventHandler ( "GiveHel", resourceRoot, function (  ) 
setElementHealth ( source, 100 ) 
end ) 
Link to comment
-- # Client Side : 
  
Schat = false 
  
GUIEditor = { 
    button = {}, 
    label = {} 
} 
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) 
        wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetAlpha(wnd, 1.00) 
        guiSetVisible ( wnd, false ) 
        GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") 
        GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") 
        GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") 
        GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") 
        GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") 
        GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") 
        GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd)     
    end 
) 
  
  
        
    
bindKey( "F5", "down", function (   ) 
 guiSetVisible( wnd, not guiGetVisible( wnd ) ) 
  showCursor( guiGetVisible ( wnd ) ) 
end ) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    if ( source == GUIEditor.button[1] ) then 
        triggerServerEvent("kill", localPlayer) 
  elseif ( source == GUIEditor.button[2] ) then 
       executeCommandHandler( "report" ) 
    elseif ( source == GUIEditor.button[5] ) then 
        triggerServerEvent( "Pro", localPlayer ) 
    elseif ( source == GUIEditor.button[3] ) then 
        triggerServerEvent ( "GiveIi", localPlayer ) 
    elseif ( source == GUIEditor.button[4] ) then 
        triggerServerEvent ( "GiveHel", localPlayer ) 
    elseif ( source == GUIEditor.button[6] ) then 
     if ( Schat == false ) then 
      showChat ( false ) 
     Schat = true 
    else 
     showChat ( true ) 
    Schat = false 
  end 
 end 
end ) 

-- # Server Side : 
  
addEvent ( "GiveIi", true ) 
addEvent ( "Pro", true ) 
addEvent ( "kill", true ) 
addEvent ( "GiveHel", true ) 
  
addEventHandler( "kill", root, function (  ) 
killPed ( source ) 
end ) 
  
  
addEventHandler("Pro", root, function ( ) 
 if ( isPedHeadless ( source ) ) then 
 setPedHeadless ( source, false ) 
else 
 setPedHeadless ( source, true ) 
 end 
end ) 
  
addEventHandler ( "GiveIi", resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
end ) 
  
addEventHandler ( "GiveHel", resourceRoot, function (  ) 
setElementHealth ( source, 100 ) 
end ) 

الان الدم+الدرع ما تشتغل

Link to comment
--كلينت 
Schat = false 
  
GUIEditor = { 
    button = {}, 
    label = {} 
} 
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) 
        wnd = guiCreateWindow(129, 69, 610, 421, "لوحة الاعب\Player Panel ", false) 
        guiWindowSetSizable(wnd, false) 
        guiSetAlpha(wnd, 1.00) 
        guiSetVisible ( wnd, false ) 
        GUIEditor.button[1] = guiCreateButton(10, 39, 189, 80, "انتحار", false, wnd) 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFE91414") 
        GUIEditor.button[2] = guiCreateButton(401, 39, 189, 80, "ارسال شكوى", false, wnd) 
        guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF20DCB6") 
        GUIEditor.button[3] = guiCreateButton(401, 310, 189, 80, "درع", false, wnd) 
        guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFB545B1") 
        GUIEditor.button[4] = guiCreateButton(401, 184, 189, 80, "دم", false, wnd) 
        guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFD69625") 
        GUIEditor.button[5] = guiCreateButton(10, 184, 189, 80, "قطع راس الاعب", false, wnd) 
        guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FF3DBF3A") 
        GUIEditor.button[6] = guiCreateButton(10, 310, 189, 80, "اخفاء الشات", false, wnd) 
        guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FF1948DF") 
        GUIEditor.label[1] = guiCreateLabel(495, 397, 100, 24, "by ja[b]er[X]Pro", false, wnd)     
    end 
) 
  
  
        
    
bindKey( "F5", "down", function (   ) 
 guiSetVisible( wnd, not guiGetVisible( wnd ) ) 
  showCursor( guiGetVisible ( wnd ) ) 
end ) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (  ) 
    if ( source == GUIEditor.button[1] ) then 
        triggerServerEvent("kill", localPlayer) 
  elseif ( source == GUIEditor.button[2] ) then 
       executeCommandHandler( "report" ) 
    elseif ( source == GUIEditor.button[5] ) then 
        triggerServerEvent( "Pro", localPlayer ) 
    elseif ( source == GUIEditor.button[3] ) then 
        triggerServerEvent ( "GiveIi", localPlayer ) 
    elseif ( source == GUIEditor.button[4] ) then 
        triggerServerEvent ( "GiveHel", localPlayer ) 
    elseif ( source == GUIEditor.button[6] ) then 
     if ( Schat == false ) then 
      showChat ( false ) 
     Schat = true 
    else 
     showChat ( true ) 
    Schat = false 
  end 
 end 
end ) 

--سيرفر 
addEvent ( "GiveIi", true ) 
addEvent ( "Pro", true ) 
addEvent ( "kill", true ) 
addEvent ( "GiveHel", true ) 
  
addEventHandler( "kill", root, function (  ) 
killPed ( source ) 
end ) 
  
  
addEventHandler("Pro", root, function ( ) 
 if ( isPedHeadless ( source ) ) then 
 setPedHeadless ( source, false ) 
else 
 setPedHeadless ( source, true ) 
 end 
end ) 
  
addEventHandler ( "GiveIi", resourceRoot, function (  ) 
setPedArmor ( source, 100 ) 
end ) 
  
addEventHandler ( "GiveHel", resourceRoot, function (  ) 
setElementHealth ( source, 100 ) 
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...