yasin0 Posted August 14, 2017 Share Posted August 14, 2017 (edited) شباب ليش اللوحة ماتنغلق function a () window = guiCreateWindow(125, 59, 368, 321, "", false) guiWindowSetSizable(window, false) Player = guiCreateGridList(9, 22, 87, 289, false, window) colmun = guiGridListAddColumn(Player, "Players", 0.9) Kill = guiCreateButton(109, 77, 243, 35, "Kill Player", false, window) if colmun then for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( Player) guiGridListSetItemText ( Player, row, colmun , getPlayerName (playeritem), false,false ) end function as () if guiGetVisible ( window ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( window, true ) showCursor(true) guiSetInputEnabled(true) bindKey("F6", "down", as) end end end end addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) Edited August 14, 2017 by yasin0 Link to comment
Omoi Posted August 14, 2017 Share Posted August 14, 2017 تفضل اخوي window = guiCreateWindow(125, 59, 368, 321, "", false) guiWindowSetSizable(window, false) Player = guiCreateGridList(9, 22, 87, 289, false, window) guiGridListAddColumn(Player, "Players", 0.9) Kill = guiCreateButton(109, 77, 243, 35, "Kill Player", false, window) function Ref() guiGridListClear(Player) for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( Player) guiGridListSetItemText ( Player, row, 1 , getPlayerName (playeritem), false,false ) end end guiSetVisible(window, false) function as () if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) Ref() else guiSetVisible ( window, true ) Ref() showCursor(true) guiSetInputEnabled(true) end end bindKey("F6", "down", as) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) Link to comment
+Source|> Posted August 14, 2017 Share Posted August 14, 2017 8 minutes ago, yasin0 said: شباب ليش اللوحة ماتنغلق function a () window = guiCreateWindow(125, 59, 368, 321, "", false) guiWindowSetSizable(window, false) Player = guiCreateGridList(9, 22, 87, 289, false, window) colmun = guiGridListAddColumn(Player, "Players", 0.9) Kill = guiCreateButton(109, 77, 243, 35, "Kill Player", false, window) if colmun then for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( Player) guiGridListSetItemText ( Player, row, colmun , getPlayerName (playeritem), false,false ) end function as () if guiGetVisible ( window ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( window, true ) showCursor(true) guiSetInputEnabled(true) bindKey("F6", "down", as) end end end end addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) جرب ديي function a () window = guiCreateWindow(125, 59, 368, 321, "", false) guiWindowSetSizable(window, false) guiSetVisible(window, false) Player = guiCreateGridList(9, 22, 87, 289, false, window) colmun = guiGridListAddColumn(Player, "Players", 0.9) Kill = guiCreateButton(109, 77, 243, 35, "Kill Player", false, window) if colmun then for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( Player) guiGridListSetItemText ( Player, row, colmun , getPlayerName (playeritem), false,false ) end end end function as () if guiGetVisible ( window ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( window, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F6", "down", as) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) Link to comment
Omoi Posted August 14, 2017 Share Posted August 14, 2017 1 minute ago, A7MEDENO said: جرب ديي function a () window = guiCreateWindow(125, 59, 368, 321, "", false) guiWindowSetSizable(window, false) guiSetVisible(window, false) Player = guiCreateGridList(9, 22, 87, 289, false, window) colmun = guiGridListAddColumn(Player, "Players", 0.9) Kill = guiCreateButton(109, 77, 243, 35, "Kill Player", false, window) if colmun then for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( Player) guiGridListSetItemText ( Player, row, colmun , getPlayerName (playeritem), false,false ) end end end function as () if guiGetVisible ( window ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( window, true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F6", "down", as) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) شكرا على جهدك اخوي لكن كودك خطا بيطلع الماوس كذا , شوف كودي وبتفهم وشكرا على جهدك مره اخرى Link to comment
+Source|> Posted August 14, 2017 Share Posted August 14, 2017 2 minutes ago, Omoi said: شكرا على جهدك اخوي لكن كودك خطا بيطلع الماوس كذا , شوف كودي وبتفهم وشكرا على جهدك مره اخرى وين الخطا طال عمرك Link to comment
yasin0 Posted August 14, 2017 Author Share Posted August 14, 2017 7 minutes ago, Omoi said: تفضل اخوي window = guiCreateWindow(125, 59, 368, 321, "", false) guiWindowSetSizable(window, false) Player = guiCreateGridList(9, 22, 87, 289, false, window) guiGridListAddColumn(Player, "Players", 0.9) Kill = guiCreateButton(109, 77, 243, 35, "Kill Player", false, window) function Ref() guiGridListClear(Player) for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( Player) guiGridListSetItemText ( Player, row, 1 , getPlayerName (playeritem), false,false ) end end guiSetVisible(window, false) function as () if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor(false) guiSetInputEnabled(false) Ref() else guiSetVisible ( window, true ) Ref() showCursor(true) guiSetInputEnabled(true) end end bindKey("F6", "down", as) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) addEventHandler ('onClientGUIClick', root, function ( ) if source == Kill then if (guiGridListGetSelectedItem(Player) ~= -1 ) then Player1 = guiGridListGetItemText (Player, guiGridListGetSelectedItem(Player),1) triggerServerEvent('Kill',localPlayer,Player1) end end end ) شكرا كودك شغال Link to comment
Omoi Posted August 14, 2017 Share Posted August 14, 2017 @yasin0 العفو وحياك بأي وقت لو عندك مشكله . 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