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

function getPlayersOnlineWithStorageValue(key, value)

Status
Not open for further replies.

hodleo

Formerly cbrm -Crypto enthusiast, Retired scripter
Staff member
Global Moderator
Joined
Jan 6, 2009
Messages
6,598
Solutions
3
Reaction score
955
Location
Caribbean Sea
is this correct?
Lua:
function getPlayersOnlineWithStorageValue(key, value)
players = getPlayersOnline()
    return (getPlayerStorageValue(players, key) == value) == true
end

function broadcastVisitors(message)
local players = getPlayersOnlineWithStorageValue(key, value)
    for i = 1, #players do
       doPlayerSendTextMessage(players[i], MESSAGE_STATUS_SMALL, "" .. message .. ".")
    end
return true
end
 
Lua:
local message = ...

function getPlayersOnlineWithStorageValue(key, value)
players = getPlayersOnline()
    return (getPlayerStorageValue(players, key) == value) == true
end

function broadcastVisitors(message)
local players = getPlayersOnlineWithStorageValue(key, value)
    for i = 1, #players do
       doPlayerSendTextMessage(players[i], MESSAGE_STATUS_SMALL, "(cid, message).")
    end
return true
end

i think i'm wrong
 
the message is ok, I need help in first function
 
Try this:
Lua:
function getPlayersOnlineWithStorageValue(key, value)
	for_, players in ipairs(getPlayersOnline()) do
    		return (getPlayerStorageValue(players, key) == value) == true
	end
end
 
thanks, dark you're always there when I need u :D
you need ideas? i got tons of them in mind
if you don't mind, you can help me developing some awesome pvp events I'm scripting
ofc I'll share'em with you, they're really nice, so the event map too

<< we'r brotherz rofl
 
Last edited:
hahah ok
so what about my MultiEvents Island?
-The HotHouse√
-Soccer Field√
-TheLastStand√
-PvP Castle
-Capture-The-Flag
-Domination
-Kill-The-King

That will be a cool server once it is finished^^. I only hope you have a custom map also, maybe you are the one that brings custom maps back to the top?:D
 
Status
Not open for further replies.
Back
Top