• 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!

C++ Add getplayersonline function

Zell

Intermediate OT User
Joined
Oct 23, 2010
Messages
214
Reaction score
117
Hiho, I dont have the getplayersonline function on my sources, so i can't check if some player that are online has X storage for do something, Maybe I can add this on functions or global.lua

I want something like this:
local heal = getCreatureMaxHealth(cid) / 3
for _, cid in ipairs(getPlayersOnline()) do
if getCreatureCondition(cid, CONDITION_INFIGHT) == false then
doCreatureAddHealth(cid, heal)

Any idea?
thanks!

0.6.3 avesta
 
Back
Top