Jump to content

تصحيح


ahhmmeed

Recommended Posts

اول مود ذا

  
GUIEditor = { 
    gridlist = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(162, 77, 430, 456, "Spwan Mod By MaxXx v.1", false) 
        guiWindowSetSizable(wnd, false) 
  
        1 = guiCreateButton(9, 23, 209, 108, "City 1", false, wnd) 
        2 = guiCreateButton(11, 161, 197, 125, "City 2", false, wnd) 
        3 = guiCreateButton(30, 346, 390, 100, "City 3", false, wnd) 
        GUIEditor.gridlist[1] = guiCreateGridList(286, 24, 134, 322, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Online In Spwan", 0.9)     
    end 
) 
  
  addEventHandler('onClientGUIClick', root 
   function ( ) 
    if ( source == 1) then  
    triggerServerEvent('1', localPlayer) 
   end  
end  
)  
  addEventHandler('onClientGUIClick', root 
   function ( ) 
    if ( source == 2 ) then  
    triggerServerEvent('2', localPlayer) 
   end  
end  
)  
  addEventHandler('onClientGUIClick', root 
   function ( ) 
    if ( source == 3 ) then  
    triggerServerEvent('3', localPlayer) 
   end  
end  
)  
  

سيرفر

addEvent('3', true)   
addEventHandler('3', root 
function ( )  
 setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
end 
) 
addEvent('3', true)   
addEventHandler('3', root 
function ( )  
 setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
end 
) 
addEvent('3', true)   
addEventHandler('3', root 
function ( )  
 setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
end 
) 

Link to comment

جـرب *

# Client Side

  
GUIEditor = { 
    gridlist = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(162, 77, 430, 456, "Spwan Mod By MaxXx v.1", false) 
        guiWindowSetSizable(wnd, false) 
        wars = guiCreateButton(9, 23, 209, 108, "City 1", false, wnd) 
        ware = guiCreateButton(11, 161, 197, 125, "City 2", false, wnd) 
        warq = guiCreateButton(30, 346, 390, 100, "City 3", false, wnd) 
        GUIEditor.gridlist[1] = guiCreateGridList(286, 24, 134, 322, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Online In Spwan", 0.9)     
    end 
) 
  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == wars ) then  
    triggerServerEvent('wars', localPlayer) 
   end  
end  
)  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == ware ) then  
    triggerServerEvent('ware', localPlayer) 
   end  
end  
)  
  addEventHandler('onClientGUIClick', root, 
   function ( ) 
    if ( source == warq ) then  
    triggerServerEvent('warq', localPlayer) 
   end  
end  
)  
  

# Server Side

addEvent('warq', true)   
addEventHandler('warq', root, 
function ( )  
 setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
end 
) 
  
addEvent('warq', true)   
addEventHandler('warq', root, 
function ( )  
 setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
end 
) 
  
addEvent('warq', true)   
addEventHandler('warq', root, 
function ( )  
 setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
end 
) 
Link to comment

جـرب *

# Client Side

GUIEditor = { 
    gridlist = {} 
} 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        wnd = guiCreateWindow(162, 77, 430, 456, "Spwan Mod By MaxXx v.1", false) 
        guiWindowSetSizable(wnd, false) 
        wars = guiCreateButton(9, 23, 209, 108, "City 1", false, wnd) 
        ware = guiCreateButton(11, 161, 197, 125, "City 2", false, wnd) 
        warq = guiCreateButton(30, 346, 390, 100, "City 3", false, wnd) 
        GUIEditor.gridlist[1] = guiCreateGridList(286, 24, 134, 322, false, wnd) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Online In Spwan", 0.9)     
    end 
) 
  
addEventHandler('onClientGUIClick', root, 
   function () 
    if ( source == wars ) then  
    setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
   end  
end  
) 
  
addEventHandler('onClientGUIClick', root, 
   function () 
    if ( source == ware ) then 
    setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
   end  
end  
) 
  
addEventHandler('onClientGUIClick', root, 
   function () 
    if ( source == warq ) then 
    setElementPosition(source,x,y,z) 
    outputChatBox('تم انتقال', source, 255, 0 ,0 )  
   end  
end  
) 
Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...