☠ RaZeR ☠ Posted January 22, 2014 Share Posted January 22, 2014 (edited) السلام عليكم عندي مود النقاط والمخالفات اللوحة مظبوطه وكل شي لاكن اناا ابي برمجة الازرار يعني لما يضغط على اعطاء الاعب نقطه يعطيه نقطه وابيه يضيف الاعبين الى اللوحة تلقائبا الكوود ملف الكلنت outputChatBox ("لوحة النقاط والمخالفات اف 12 |W.T|FOX",source,255,0,0,true) ------------ ------------- --------- GUIEditor = { checkbox = {}, label = {}, edit = {}, button = {}, window = {}, gridlist = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(114, 56, 613, 413, "Xx| لوحة النقاط والمخالفات |Xx", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.90) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0BFD00") GUIEditor.button[1] = guiCreateButton(435, 79, 156, 50, "اعطاء اللاعب نقطة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFE0000") GUIEditor.button[2] = guiCreateButton(435, 292, 156, 50, "حذف مخالفة من اللاعب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFE0000") GUIEditor.button[3] = guiCreateButton(435, 227, 156, 50, "حذف نقطة من اللاعب", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFE0000") GUIEditor.button[4] = guiCreateButton(435, 158, 156, 50, "اعطاء اللاعب مخالفة", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFE0000") GUIEditor.gridlist[1] = guiCreateGridList(0.01, 0.06, 0.69, 0.92, true, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم اللاعب", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "النقاط", 0.3) guiGridListAddColumn(GUIEditor.gridlist[1], "المخالفات", 0.3) for i = 1, 22 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "0", false, false) GUIEditor.label[2] = guiCreateLabel(436, 351, 155, 52, "BY FOX", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 101, 0, 254) guiLabelSetHorizontalAlign(GUIEditor.label[2], "left", true) GUIEditor.button[6] = guiCreateButton(501, 21, 100, 30, "X اغلاق", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], "default-bold-small") guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFF4F704") end ) ---------------- ----------------------- -------------------- function putPlayers() triggerServerEvent("onGetAllPlayers",localPlayer) end addEvent("onPutAllPlayers",true) addEventHandler("onPutAllPlayers",root, function (tab) guiGridListClear(grid) for i,player in ipairs(tab) do local row = guiGridListAddRow(grid) guiGridListSetItemText(grid,row,1,player.name,false,false) guiGridListSetItemText(grid,row,2,player.v,false,false) guiGridListSetItemText(grid,row,3,player.g,false,false) end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if source == GUIEditor.button[1] then triggerServerEvent ( "onTakeNewPoint", localPlayer ) end end ) addEventHandler ( "onClientGUIClick", getRootElement() , function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor (false) end end ) marker = createMarker (1910.2493896484,-2316.5402832031,13.546875, "cylinder", 3, 255, 0, 0, 127) createBlipAttachedTo(GUIEditorMarker,20,2,0,255,0,0,0,200) addEventHandler( "onClientMarkerHit", marker, function ( element ) if element == getLocalPlayer ( ) then if ( guiGetVisible ( GUIEditor.window[1] ) == false ) then guiSetVisible( GUIEditor.window[1], true ) showCursor( true ) end end end ) ملف السيرفر addEvent ( "onTakeNewPoint", true ) addEventHandler ( "onTakeNewPoint", root, function ( ) addEvent "onClientGUIClick" if source == GUIEditor.button[1] then triggerClientEvent ( "onTakeNewPoint", localPlayer ) end end ) Edited January 22, 2014 by Guest Link to comment
iPrestege Posted January 22, 2014 Share Posted January 22, 2014 كنت تقدر تختصر من سطر 39 الى 106 بالجداول -.- لية كل هالعفسة ؟ Link to comment
☠ RaZeR ☠ Posted January 22, 2014 Author Share Posted January 22, 2014 الزبدة تعرف تسويلي الكود Link to comment
al-Kobra Posted January 22, 2014 Share Posted January 22, 2014 (edited) انت خربت ام الاكواد حاط ايفنت كلنت وفنكشن سيرفر !! المهم ,, تقدر تسوي الاكواد بـ setElementData getElementData Edited January 28, 2014 by Guest Link to comment
|Mr|-Talal07-| Posted January 23, 2014 Share Posted January 23, 2014 getAccountData getPlayerAccount hasObjectPermissionTo setAccountData اذا انت مبتدأ لا تبدأ بأشياء صعبه ابدأ بالاشياء السهله Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now