Jump to content

مساعده جريد ليست


Recommended Posts

السلام عليكم ورحمه الله وبركاته

انا عندي قريد ليست

ابي يحط فيها اسماء اللاعبين الي دخلو السيرفر + السيريال حقهم + ترتيب الللاعبين ذا كود الجريد ليست

        GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 473, 302, false, GUIEditor.window[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "NamePlayer", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Serial", 0.3) 

Link to comment
"onClientResourceStart" 
triggerServerEvent 
-- server 
executeSQLQuery -- create table 
executeSQLQuery -- select 
triggerClientEvent 
-- client 
guiGridListAddRow 
guiGridListSetItemText 

"onPlayerJoin" 
getPlayerName 
getPlayerSerial 
executeSQLQuery -- للحفظ 
triggerClientEvent 
-- client 
guiGridListAddRow 
guiGridListSetItemText 

Link to comment

ذا يكتب اسمهاا كل الفي سرفر في القريد لست

function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

يجي سريالهم :

function update () 
guiGridListClear(GUIEditor.gridlist[2]) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (GUIEditor.gridlist[2]) 
guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getPlayerSerial(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
Link to comment
ذا يكتب اسمهاا كل الفي سرفر في القريد لست

function update () 
guiGridListClear(grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (grid) 
guiGridListSetItemText (grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

يجي سريالهم :

function update () 
guiGridListClear(GUIEditor.gridlist[2]) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (GUIEditor.gridlist[2]) 
guiGridListSetItemText (GUIEditor.gridlist[2],rp,1,getPlayerSerial(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
getPlayerSerial Server-only function

Note: The client side version of getPlayerSerial has been deprecated as it can return the wrong value for some players, and is potentially insecure. The following article assumes that the function is serverside only.

Link to comment

مازبط

server

function update () 
guiGridListClear(Grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (Grid) 
guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
  
  
  
function update () 
guiGridListClear(Grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (Grid) 
guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

Link to comment

ذا اسم القريد حقي حاطه

  
        Grid = guiCreateGridList(9, 20, 473, 302, false, Wind) 
        guiGridListAddColumn(Grid, "#", 0.3) 
        guiGridListAddColumn(Grid, "NamePlayer", 0.3) 
        guiGridListAddColumn(Grid, "Serial", 0.6) 

Link to comment

function update () 
guiGridListClear(Grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (Grid) 
guiGridListSetItemText (Grid,rp,2,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
Link to comment
مازبط

server

function update () 
guiGridListClear(Grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (Grid) 
guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 
  
  
  
function update () 
guiGridListClear(Grid) 
for i,v in ipairs (getElementsByType("player")) do 
local rp = guiGridListAddRow (Grid) 
guiGridListSetItemText (Grid,rp,1,getPlayerName(v),false,false) 
end 
end 
addEventHandler ("onClientResourceStart",resourceRoot,update) 
addEventHandler ("onClientPlayerJoin",root,update) 
addEventHandler ("onClientPlayerChangeNick",root,update) 
addEventHandler ("onClientPlayerQuit",root,update) 

الاكواد كلنت ياقلبي مو سيرفر -_-

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