Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-10-24, 14:48


_Haze

Peace Yo!






Wiek: 25
Na forum: 4325 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020


function asd1()
if source == kick then 
local kicked = guiGridListGetItemText ( lista, guiGridListGetSelectedItem ( lista ), 1 )
triggerServerEvent("onPlayerKick", resourceRoot, kicked, "OTRZYMALES KICKA OD SMODA/MODA")
elseif source == ban then
local banned = guiGridListGetItemText ( lista, guiGridListGetSelectedItem ( lista ), 1 )
triggerServerEvent("onPlayervacBan", resourceRoot, banned, "OTRZYMALES BANA OD SMODA/MODA")
elseif source == mmute then
local mmuted = guiGridListGetItemText ( lista, guiGridListGetSelectedItem ( lista ), 1 )
executeCommandHandler( "mmute " .. guiGridListGetItemText ( lista, guiGridListGetSelectedItem ( lista ), 1 ) )
elseif source == ap1 then
executeCommandHandler ( "ap 1" )
outputDebugString ( "ap1" )
elseif source == ap2 then
executeCommandHandler ( "ap 2" )
elseif source == dp1 then
executeCommandHandler ( "dp 1" )
elseif source == dp2 then
executeCommandHandler ( "dp 2" )
elseif source == tsn1 then
executeCommandHandler ( "tsn 1 ".. guiGetText ( editbox ) )
elseif source == tsn2 then
executeCommandHandler ( "tsn 2 ".. guiGetText ( editbox ) )
end
end
addEventHandler ( "onClientGUIClick", root, asd1 )

nie dzialaja dp ap tsn itd tu macie gui
window = guiCreateWindow(349, 156, 713, 530, "SMOD/MOD PANEL BY HAZ", false)
guiWindowSetSizable(window, false)
guiSetVisible(window, false)
lista = guiCreateGridList(38, 41, 190, 475, false, window)
scrollbar = guiCreateScrollBar(164, 23, 16, 442, false, false, lista)
kick = guiCreateButton(254, 43, 69, 33, "kick", false, window)
mmute = guiCreateButton(255, 82, 68, 29, "mmute", false, window)
ban = guiCreateButton(255, 118, 68, 26, "ban", false, window)
ap1 = guiCreateButton(508, 82, 49, 39, "AP 1", false, window)
ap2 = guiCreateButton(582, 82, 49, 39, "AP 2", false, window)
dp1 = guiCreateButton(508, 134, 49, 39, "DP 1", false, window)
dp2 = guiCreateButton(582, 134, 49, 39, "DP 2", false, window)
tsn1 = guiCreateButton(506, 195, 51, 35, "tsn 1 (editbox)", false, window)
tsn2 = guiCreateButton(580, 195, 51, 35, "tsn 2 (editbox)", false, window)
editbox = guiCreateEdit(497, 246, 144, 31, "", false, window)   
column = guiGridListAddColumn( lista, "Players", 0.85 

Oczywiscie za pomoc :arrow: :piwo: :arrow: R*

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-10-24, 15:06


Tostuch







Wiek: 28
Na forum: 5072 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Komendy /tsn /ap /sp s? po stronie serwera, zr?b trigger na s-side i wtedy je executuj.

Postaw piwo autorowi tego posta
 

 
Tagi: panel :: smoda
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » panel smoda Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku