michal982010
Wiek: 29 Na forum: 4445 dni Posty: 69
Piwa : 1
WITAM .
Prosi?bym aby kto? z was Wyt?umaczy? mi jak przypisa? funkcje pod przycisk GUI, aby dawa?o np M4A1 + magazynek
Przyk?adowo pod przycisk "BRO? + MAGAZYNKI "
Z g?ry dzi?uje za pomoc, oraz prosz?o wyrozumia?o??.
Kod: GUIEditor = {
button = {},
window = {},
label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(700, 254, 506, 644, "PANEL VIP", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "C8FFFFFE")
GUIEditor.button[1] = guiCreateButton(158, 607, 195, 22, "CLOSE", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "C8001377")
GUIEditor.button[2] = guiCreateButton(9, 394, 487, 44, "NARZ?DZIA", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "C8612020")
GUIEditor.button[3] = guiCreateButton(9, 166, 487, 41, "PLECAK", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[3], "default-bold-small")
guiSetProperty(GUIEditor.button[3], "NormalTextColour", "C8612020")
GUIEditor.button[4] = guiCreateButton(9, 223, 487, 41, "JEDZENIE I PICIE", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[4], "default-bold-small")
guiSetProperty(GUIEditor.button[4], "NormalTextColour", "C8612020")
GUIEditor.button[5] = guiCreateButton(9, 279, 487, 41, "MEDYKAMENTY", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[5], "default-bold-small")
guiSetProperty(GUIEditor.button[5], "NormalTextColour", "C8612020")
GUIEditor.button[6] = guiCreateButton(9, 337, 487, 41, "BRO? + MAGAZYNKI", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[6], "default-bold-small")
guiSetProperty(GUIEditor.button[6], "NormalTextColour", "C8612020")
GUIEditor.label[1] = guiCreateLabel(14, 10, 15, 15, "", false, GUIEditor.window[1])
GUIEditor.label[2] = guiCreateLabel(185, 24, 202, 21, "WITAJ W PANELU VIP", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 186, 1, 1)
GUIEditor.label[3] = guiCreateLabel(42, 45, 484, 29, "W PANELU TYM MASZ DOST?P DO RZECZY, KT?RE POMOG?CI PRZETRWA?", false, GUIEditor.window[1])
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 186, 1, 1)
end
)
[/list][/code][/quote]