مدري وش تقصد بس اذا كنت تقصد انك تضغط على اسمه مره وما يطلع لك المعلومات حقته
هذي بسبب الحدث انت حطيته اول م تضغط دبل كلك يعني مرتين ورا بعض تبيه من ضغطه كذا ..
function setStats()
local row, col = guiGridListGetSelectedItem(source)
if (row and col and row ~= -1 and col ~= -1) then
local playername = guiGridListGetItemText(source,row,col)
local thePlayer = getPlayerFromName(playername)
if (thePlayer) then
local pteam = getPlayerTeam(thePlayer)
if (pteam) then
teamname = getTeamName(pteam)
else
teamname = "N/A"
end
local x, y, z = getElementPosition (thePlayer)
local occupation = getElementData(thePlayer,"cor.job")
local group = getElementData(thePlayer,"Group")
local wl = getElementData(thePlayer,"WantLvl")
local zone = getZoneName ( x, y, z )
local playtime = getElementData(thePlayer,"PlayTime")
local cash = getElementData(thePlayer, "Money")
local ping = getPlayerPing(thePlayer)
guiSetText(NickLab,"Name: ".. tostring(playername))
guiSetText(LocLab,"Zone: ".. tostring(zone))
guiSetText(OccLab,"Occupation: ".. tostring(occupation))
guiSetText(WLLab,"Wanted Level: ".. tostring(wl))
guiSetText(MonLab,"Cash: ".. tostring(cash))
guiSetText(TeamLab,"Team: ".. tostring(teamname))
guiSetText(TimeLab,"Playtime: ".. tostring(playtime))
guiSetText(PingLab,"Ping: ".. tostring(ping))
guiSetText(GroupLab,"Group: ".. tostring(group))
end
end
end
addEventHandler("onClientGUIClick",StatsGrid,setStats,false)