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

/check

AGS

DeathSouls Owner
Joined
Oct 29, 2007
Messages
400
Reaction score
10
Location
Mexico
I think it's possible to do a /check command in Lua, that shows all the players that share the same ip...

It would take all the players from the players table wich have online = 1.

Then, It will only show the ones that "lastip" matches with another player online's "lastip"

You know what I mean?

I'm using TFS
 
It could be done in SQL if there is a field for their online status :p

Like, /check "Colandus:
PHP:
player = getPlayerByName(param)
if player > 0 then
    sql = "SELECT ip FROM players WHERE name=\""..param.."\""
    ip = -- the query of "sql"
    sql2 = "SELECT * FROM players WHERE ip=\""..ip.."\" and online=1"
end

yarr something like that xD Haven't been working so much with LuaSQL but something like that!
 
Yeah, there's a online row in the players table, and a a "lastip" row too.

But I don't know much about LuaSQL
 
Back
Top