Jump to content

مساعدة في قيم مود ادخلووووو


3SM

Recommended Posts

المهم شبااب

سوينا لوحة

باقي برمجتها لو سمحت ابي لي يبرمجها لي

  
GUIEditor = { 
    gridlist = {}, 
    button = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.button[1] = guiCreateButton(805, 587, 181, 76, "SPAWN", false) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        guiSetProperty(GUIEditor.button[1], "NormalTextColour", "E6FE0808") 
  
  
        GUIEditor.gridlist[1] = guiCreateGridList(776, 367, 210, 210, false) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Skin", 0.9) 
        for i = 1, 3 do 
            guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "##SkinAbYad توب ابيض", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 0, 1, 54, 7, 254, 230) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "##SkinAswad توب اسود", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 1, 1, 54, 7, 254, 230) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 2, 1, "##Skin7ARB سكين حرب", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[1], 2, 1, 54, 7, 254, 230) 
  
  
        GUIEditor.gridlist[2] = guiCreateGridList(781, 131, 205, 199, false) 
        guiGridListAddColumn(GUIEditor.gridlist[2], "Molok Spawn", 0.9) 
        for i = 1, 3 do 
            guiGridListAddRow(GUIEditor.gridlist[2]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[2], 0, 1, "##DAYRI دايري", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[2], 0, 1, 54, 7, 254, 230) 
        guiGridListSetItemText(GUIEditor.gridlist[2], 1, 1, "##SA7A ساحة قتال", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[2], 1, 1, 54, 7, 254, 230) 
        guiGridListSetItemText(GUIEditor.gridlist[2], 2, 1, "بداية سيرفر ALbdaya##", false, false) 
        guiGridListSetItemColor(GUIEditor.gridlist[2], 2, 1, 54, 7, 254, 230)     
    end 
) 
  
addEventHandler("onClientRender", root, 
    function() 
        dxDrawRectangle(747, 99, 277, 594, tocolor(149, 149, 149, 120), false) 
        dxDrawText("Selecte Skin", 747, 330, 913, 377, tocolor(254, 205, 9, 230), 1.30, "default", "left", "center", false, false, false, false, false) 
        dxDrawRectangle(658, 211, 0, 50, tocolor(255, 255, 255, 255), false) 
        dxDrawRectangle(658, 211, 0, 50, tocolor(255, 255, 255, 255), false) 
    end 
) 
  

د هي لوحة

صورة للوحة

http://a.top4top.net/p_86mk6f1.jpg

Link to comment

كنت فاضي فـ برمجت لوحتك

-- client 
local x,y = guiGetScreenSize () 
local xs,ys =  x / 1024, y / 768 
ok = guiCreateButton(xs * 785, ys * 577, 181, 76, "Spawn !", false) 
guiSetFont(ok, "default-bold-small") 
guiSetProperty(ok, "NormalTextColour", "FF00FCDC") 
  
  
sgrid = guiCreateGridList(xs * 752, ys * 357, 252, 210, false) 
guiGridListAddColumn(sgrid, "#Skin", 0.9) 
guiSetFont(sgrid, "default-bold-small") 
  
  
grid = guiCreateGridList(xs * 747, ys * 120, 252, 199, false) 
guiGridListAddColumn(grid, "#Spawn place", 0.9) 
guiSetFont(grid, "default-bold-small") 
  
local screenW, screenH = guiGetScreenSize() 
  
  
    function win() 
        dxDrawRectangle(screenW - 277 - 10, (screenH - 557) / 2, 277, 557, tocolor(255, 180, 0, 100), false) 
        dxDrawText("*Select the skin", xs * 752, ys * 329, 872, 347, tocolor(253, 0, 0, 255), 1.30, "default", "left", "center", false, false, false, false, false) 
        dxDrawRectangle(xs * 658, ys * 211, 0, 50, tocolor(255, 255, 255, 255), false) 
        dxDrawRectangle(xs * 658, ys * 211, 0, 50, tocolor(255, 255, 255, 255), false) 
    end 
addEventHandler("onClientRender", root,win) 
function close() 
guiSetVisible (grid,false) 
guiSetVisible (ok,false) 
guiSetVisible (sgrid,false) 
end 
  
local spawnplaces = { 
{"البداية", حط الاحداثيات}, 
{"مكان آخر", حط الاحداثيات}, 
} 
local skins = { 
{"الثوب الأبيض", رقم الشخصية}, 
{"الثوب الاسود", رقم الشخصية}, 
{"سكن الحرب", رقم الشخصية}, 
} 
for i,k in ipairs (spawnplaces) do 
local row = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,row,1,tostring(k[1]),false,false) 
guiGridListSetItemData (grid,row,1,{k[2] or 0,k[3] or 0,k[4] or 0}) 
end 
for i,v in ipairs (skins) do 
rw = guiGridListAddRow (sgrid) 
guiGridListSetItemText (sgrid,rw,1,v[1],false,false) 
guiGridListSetItemData (sgrid,rw,1,v[2]) 
end 
  
addEventHandler ("onClientGUIClick",ok, 
function () 
local sel,sel2 = guiGridListGetSelectedItem (grid),guiGridListGetSelectedItem (sgrid) 
if sel ~= -1 and sel2 ~= -1 then 
local xe,ye,ze = unpack(guiGridListGetItemData (grid,sel,1)) 
local sID = guiGridListGetItemData (sgrid,sel2,1) 
triggerServerEvent ("3smSpawn",localPlayer,xe,ye,ze,sID) 
removeEventHandler ("onClientRender",root,win) 
close () 
end 
end 
,false) 
  

-- server 
addEvent ("3smSpawn",true) 
addEventHandler ("3smSpawn",root, 
function (xe,ye,ze,sID) 
spawnPlayer (source,xe,ye,ze,0,sID,0) 
fadeCamera (source,true) 
setCameraTarget (source,source) 
end 
) 
Link to comment
spawnPlayer (source,xe,ye,ze,0,sID,0) 

سؤال ليه اكواد تيجي الونها عاليه

يعني قارن الكود دا من كودك , من ناحيه الاوان وهيك

spawnPlayer (source,xe,ye,ze,0,sID,0) 

استخدم خط تقيل (Bold)

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...