plysiu
New Member
As topic say it's changing spawns for all players
PHP:
<?PHP
//Created by plysiu
if($group_id_of_acc_logged >= $config['site']['access_admin_panel'])
{
$posx = stripslashes(ucwords(strtolower(trim($_REQUEST['posx']))));
$posy = stripslashes(ucwords(strtolower(trim($_REQUEST['posy']))));
$posz = stripslashes(ucwords(strtolower(trim($_REQUEST['posz']))));
if(empty($name))
{
$main_content .= '<form action="index.php?subtopic=zmianaspawnow&action=zmianaspawnow" METHOD=post>
<input type="textbox" value="50" name="posx"><br />
<input type="textbox" value="50" name="posy"><br />
<input type="textbox" value="7" name="posz"><br />
<input type="submit" id="Button1" name="Button1" value="Submit"></form>';
//COPY RIGHTS!! DO NOT DELETE!
$main_content .= '<br /><br /><center><font size=1><b>Created by plysiu</font></center>';
}
if($action == "zmianaspawnow")
{
$SQL->query('UPDATE players SET posx = '.$posx.' , posy = '.$SQL->quote($posy).' , posz = '.$SQL->quote($posz).';');
$main_content .= '<center><font size=3><b>Congratulations!</b><br />Zmieniłeś Spawny na x='.$posx.' y='.$posy.' z='.$posz.'</font></center>';
//COPY RIGHTS!! DO NOT DELETE!
$main_content .= '<br /><br /><center><font size=1><b>Created by plysiu</font></center>';
}
}
//Created by plysiu
?>