Jump to content

طلب آيفنت


Recommended Posts

تسلم لاكن ايش المشكله

  
  
guiGridListAddColumn(GUIEditor_Grid[1],"PlayerName",0.5) 
guiGridListAddColumn(GUIEditor_Grid[1],"Kill",0.1) 
guiGridListAddColumn(GUIEditor_Grid[1],"Deaths",0.1) 
  
function U() 
       guiGridListClear(GUIEditor_Grid[1]) 
       for i, player in ipairs (getElementsByType ("player")) do 
              local row = guiGridListAddRow(GUIEditor_Grid[1]) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths"), false, false) 
              if i == 20 then break end 
       end 
end 
addEventHandler("onClientResourceStart",resourceRoot,Ul) 
addEventHandler("onClientPlayerWasted",root,U) 

؟

Link to comment
addEventHandler("onClientResourceStart",resourceRoot,Ul) 

addEventHandler("onClientResourceStart",resourceRoot,U) 

للحين العطل له

GUIEditor_Window = {} 
GUIEditor_Grid = {} 
 GUIEditor_Window = {} 
GUIEditor_Grid = {} 
  
local x,y = guiGetScreenSize() 
GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
  
guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.6) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.3) 
  
function U() 
       guiGridListClear(GUIEditor_Grid[1]) 
       for i, player in ipairs (getElementsByType ("player")) do 
              local row = guiGridListAddRow(GUIEditor_Grid[1]) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getElementData(player,"Deaths"), false, false) 
              if i == 20 then break end 
       end 
end 
addEventHandler("onClientResourceStart",resourceRoot,U) 
addEventHandler("onClientPlayerWasted",root,U) 
  
bindKey ( "F1" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
  
 end 
 end 
 ) 

مايتغير العدد ابد لا للي قتل ولا للي انقتل

Link to comment
GUIEditor_Window = {} 
GUIEditor_Grid = {} 
 GUIEditor_Window = {} 
GUIEditor_Grid = {} 
  
local x,y = guiGetScreenSize() 
GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) 
guiSetVisible(GUIEditor_Window[1] ,false) 
GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],2) 
  
guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.6) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.3) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.3) 
function U() 
       guiGridListClear(GUIEditor_Grid[1]) 
       for i, player in ipairs (getElementsByType ("player")) do 
              local row = guiGridListAddRow(GUIEditor_Grid[1]) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills"), false, false) 
              guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths"), false, false) 
              if i == 20 then break end 
       end 
end 
addEventHandler("onClientResourceStart",resourceRoot,U) 
addEventHandler("onClientPlayerWasted",root,U) 
  
bindKey ( "F1" , "down" , function() 
  
if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then 
 guiSetVisible ( GUIEditor_Window[1] ,false ) 
 showCursor (false ) 
 guiSetInputEnabled(false) 
  
 elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then 
 guiSetVisible ( GUIEditor_Window[1] ,true ) 
 showCursor (false ) 
 guiSetInputEnabled(true) 
  
 end 
 end 
 ) 

Link to comment
GUIEditor_Window = {} 
GUIEditor_Grid = {} 
GUIEditor_Window = {} 
GUIEditor_Grid = {} 
  
local x,y = guiGetScreenSize() 
GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) 
guiSetVisible(GUIEditor_Window[1] ,false) 
GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],1) 
  
guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.5) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.2) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.2) 
  
setElementData(localPlayer, "Kills", 0) 
setElementData(localPlayer, "Deaths", 0) 
  
addEventHandler("onClientPlayerWasted",root, 
function(killer) 
     if killer then 
          local k = getElementData(killer,"Kills") or 0 
          setElementData(killer, "Kills",k+1) 
     end 
     local d = getElementData(source, "Deaths") or 0 
     setElementData(source, "Deaths",d+1) 
end) 
  
function U() 
     guiGridListClear(GUIEditor_Grid[1]) 
     for i, player in ipairs (getElementsByType ("player")) do 
          local row = guiGridListAddRow(GUIEditor_Grid[1]) 
          guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) 
          guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills") or 0, false, false) 
          guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths") or 0, false, false) 
          if i == 20 then break end 
     end 
end 
addEventHandler("onClientResourceStart",resourceRoot,U) 
addEventHandler("onClientPlayerWasted",root,U) 
  
bindKey("F1" , "down", 
function() 
     guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
     guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end) 

Link to comment
GUIEditor_Window = {} 
GUIEditor_Grid = {} 
GUIEditor_Window = {} 
GUIEditor_Grid = {} 
  
local x,y = guiGetScreenSize() 
GUIEditor_Window[1] = guiCreateWindow(x/2-179,y/2-203,358,405,"kill / Deaths",false) 
guiSetVisible(GUIEditor_Window[1] ,false) 
GUIEditor_Grid[1] = guiCreateGridList(9,24,340,372,false,GUIEditor_Window[1]) 
guiGridListSetSelectionMode(GUIEditor_Grid[1],1) 
  
guiGridListAddColumn(GUIEditor_Grid[1],"Player Name",0.5) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Kills",0.2) 
guiGridListAddColumn(GUIEditor_Grid[1],"Player Deaths",0.2) 
  
setElementData(localPlayer, "Kills", 0) 
setElementData(localPlayer, "Deaths", 0) 
  
addEventHandler("onClientPlayerWasted",root, 
function(killer) 
     if killer then 
          local k = getElementData(killer,"Kills") or 0 
          setElementData(killer, "Kills",k+1) 
     end 
     local d = getElementData(source, "Deaths") or 0 
     setElementData(source, "Deaths",d+1) 
end) 
  
function U() 
     guiGridListClear(GUIEditor_Grid[1]) 
     for i, player in ipairs (getElementsByType ("player")) do 
          local row = guiGridListAddRow(GUIEditor_Grid[1]) 
          guiGridListSetItemText(GUIEditor_Grid[1], row, 1, getPlayerName(player), false, false) 
          guiGridListSetItemText(GUIEditor_Grid[1], row, 2, getElementData(player,"Kills") or 0, false, false) 
          guiGridListSetItemText(GUIEditor_Grid[1], row, 3, getElementData(player,"Deaths") or 0, false, false) 
          if i == 20 then break end 
     end 
end 
addEventHandler("onClientResourceStart",resourceRoot,U) 
addEventHandler("onClientPlayerWasted",root,U) 
  
bindKey("F1" , "down", 
function() 
     guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1])) 
     guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1])) 
end) 

تسلملي اخي تابل والله ماتقصر

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