_Haze
Peace Yo!
Wiek: 24 Na forum: 4184 dni Posty: 1648
Nick w MP: Haze
Piwa : 2628
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