• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Help!

scorpionfight

New Member
Joined
Sep 21, 2008
Messages
111
Reaction score
1
Location
Brazil
Hi guys.

I wonder if it is possible to make a function to change a field in the database, for example .. premium_points ..
A function that give premium_points for all players, offline and online.
The problem is that I do not know how to do this, because all commands use (cid), etc. .. I think you get the idea. So if you can help, I really appreciate.

Sorry for bad english and thanks.
 
BUMP;
Anyone?

I found this function in lib, but I dont know how I can use it.. table.insert(players


function getPlayersOnlineEx()
local players = {}
for i, cid in ipairs(getPlayersOnline()) do
table.insert(players, getCreatureName(cid))
end

return players
end
 
Back
Top