Another small edition, I generally wanted to stay away from regular players since I'm not a real player just there to run everything, so I decided to make a small option to just teleport to a level 10000 area, so nobody can touch me whenever I wanted... Anyways, here it goes:
1. Create a new city, whatever name you want, like Admin Island, level 10000, and note down the location ID.
Create a file admin_teleport.php
<?php
Include_once "globals.php";
If($ir['user_level'] == 2)
{
Echo "<h2><font color=red>Admin Island</h2></font>
<font color=green>Teleport to an admin-only secret island to stay away from other players.</font><br />
<a href='admin_teleport_done.php'><b><h1>»Teleport</h1></b></a>";
}
Else
{
Echo "<font color=red><b>You are not skilled to teleport little one!</b></font>";
}
$h->endpage();
?>
Create a file admin_teleport_done.php
<?php
Include_once "globals.php";
If($ir['user_level'] == 2)
{
Echo "<font color=green><h2>You teleported to the Admin Island.</h2><br>
No players will be able to reach you here, whenever you wish to leave just<br>
use the travel function in the city.</font><br />
<a href='staff.php'><b><h1>»Back</b></a>";
$db->query("UPDATE users SET location=10 WHERE userid=$userid");
}
Else
{
Echo "<font color=red><b>You are not skilled to teleport little one!</b></font>";
}
$h->endpage();
?>
SET location=X
Make sure to change the X to your newly created city ID that you made earlier.
Open up smenu.php
Find:
> <a href='staff.php?action=basicset'>Basic Settings</a><br />
Add Below:
> <a href='admin_teleport.php'>Admin Teleport</a><br />
And you're done. I know, I know, really basic but useful at least to me a lot and works great for me. Enjoy!