ahhmmeed Posted February 11, 2014 Share Posted February 11, 2014 اول مود ذا 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
EH10 Posted February 11, 2014 Share Posted February 11, 2014 جـرب * # 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
ahhmmeed Posted February 11, 2014 Author Share Posted February 11, 2014 يعني اشيل ترايقر وما اسوي ملف سيرفر ؟ Link to comment
shwaeki Posted February 11, 2014 Share Posted February 11, 2014 يب شيلة و خلي بس كلنت Link to comment
ahhmmeed Posted February 11, 2014 Author Share Posted February 11, 2014 والله يسلمو انت واحد تستحق كل احترام Link to comment
EH10 Posted February 11, 2014 Share Posted February 11, 2014 جـرب * # 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
فاّرس Posted February 11, 2014 Share Posted February 11, 2014 visibleTo = Server Side ! Link to comment
xFace[B]ook Posted February 11, 2014 Share Posted February 11, 2014 صاحب الموضوع نفسيه > Link to comment
Recommended Posts