nicolasdasd
New Member
- Joined
- Feb 26, 2013
- Messages
- 7
- Reaction score
- 1
Hi, im looking for the info when you click on the player. Only says profession and lvl not the guild. Can u help me please?
i found this script, but i dont know how to install.. thanks
up
i found this script, but i dont know how to install.. thanks
function getGuildMembersOnline(GuildId)
local players = {}
for _, pid in pairs(getPlayersOnline()) do
if getPlayerGuildId(pid) == tonumber(GuildId) then
table.insert(players, pid)
end
end
return #players > 0 and #players or 0
end
function getGuildMembers(GuildId)
local players,query = {},db.getResult("SELECTname
FROMplayers
WHERErank_id
IN (SELECTid
FROMguild_ranks
WHEREguild_id
= " .. GuildId .. ");")
if (query:getID() ~= -1) then
repeat
table.insert(players,query:getDataString("name"))
until not query:next()
query:free()
end
return #players > 0 and #players or 0
end
Post automatically merged:
up
Last edited: