Why don't you define a list of GM names in the world server
so you can just load the names once, in stead of everytime you buddy someone?
just my opinion, saves a lot of memory though
btw my way is the same as flav's .. i just changed the declaration and the text
yah it's Gamemaster in GMS![]()
Useful. Great for gMS-like servers.
i added this in both of my v55 and v62 servers![]()
uNice release!
Would This Work? o.o
I Changed !player.isGM() to player.gmLevel() > 0
PHP Code:Connection con = DatabaseConnection.getConnection();
try {
PreparedStatement ps = con.prepareStatement("SELECT * FROM characters WHERE gm > 0 AND name = ?");
ps.setString(1, addName);
ResultSet rs = ps.executeQuery();
if (rs.next() && player.gmLevel() > 0) {
player.dropMessage(1, "GameMaster is not Available as a Buddy.");
return;
}
rs.close();
ps.close();
} catch (SQLException sqlE) {}
well you got it in a wrong line
this line makes GMs able to buddy GMs but prevents players from adding GMs
if u remove it, no one can add a GM o_o
correct me if im wrong..
Then how it works with player.gmLevel() ???
useless releases out the wazoo lately