lSenturion2
Active Member
- Joined
- Oct 2, 2019
- Messages
- 124
- Reaction score
- 29
Can someone help on this?
I need this script have to show on CHANNEL_PLAYERSON the total players online and the names, like the !online command.
I need this script have to show on CHANNEL_PLAYERSON the total players online and the names, like the !online command.
Code:
function onThink(cid, interval, lastExecution)
for _, creature in ipairs(getChannelUsers(CHANNEL_PLAYERSON)) do
doPlayerSendChannelMessage(creature, "Information", " Players online: ", TALKTYPE_CHANNEL_O, CHANNEL_PLAYERSON)
end
return TRUE
end