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

[PHP] Bans table

PHP:
mysql_connect("host", "user", "pass") or die ("Could not connect to MySQL Server.");
mysql_select_db("database") or die ("Could not select database.");
 
It doesnt order by level, the level order is to get the highest leveled character from the banned account, anyways:
PHP:
$query = mysql_query("SELECT * FROM bans ORDER BY expires DESC");
 
On what line should i put this? Sorry if im stupid but im in the roof now...
Edit: Could be good to have something like "If gm deleted don't show".
 
Last edited:
Just replace this:
PHP:
$query = mysql_query("SELECT * FROM bans");

to this one:
PHP:
$query = mysql_query("SELECT * FROM bans ORDER BY expires DESC");
 
When a player is auto banned because of excessive unjustified player killing no gm has banned him. Can you make it so it shows Autobanned or something instead? And also if a player is deleted or gamemaster is deleted it should show "by deleted player" or "by deleted admin".
Only if you want, you have already made a great script. :D
Thank you for that!
 
Last edited:
Back
Top