Initiate Mage
- Joined
- Sep 28, 2008
- Messages
- 3
- Reaction score
- 0
#1: Prevent Banned Players from Being Attacked
On my game, someone got banned, and while he was banned he got attacked repeatedly and went down 15 ranks. I thought that was unfair and coded this.
Open floten3.php and find this line (it probably could go in several different places, but this location worked for me.):
Add this after it.
#2: Fix Major Banning Bug in XNova 0.8 (Probably not in RageZone)
I discovered that when a player was banned, it still said they were banned even after the ban expired. This is my fix for it:
Open includes/functions/ChekUser.php and find this line:
Add this code following that line.
On my game, someone got banned, and while he was banned he got attacked repeatedly and went down 15 ranks. I thought that was unfair and coded this.
Open floten3.php and find this line (it probably could go in several different places, but this location worked for me.):
Code:
$VacationMode = $HeDBRec['urlaubs_modus']
Code:
$banned = mysql_result(doquery('SELECT bana FROM {{table}} WHERE id='.$TargetPlanet['id_owner'], 'users'), 0);
if($banned)
message("<font color=\"red\">You may not attack a player who is banned!</font>", 'Error', 'fleet.'.$phpEx, 2);
#2: Fix Major Banning Bug in XNova 0.8 (Probably not in RageZone)
I discovered that when a player was banned, it still said they were banned even after the ban expired. This is my fix for it:
Open includes/functions/ChekUser.php and find this line:
Code:
$user = $Result['record'];
Code:
if($user['bana'] == "1" && $user['banaday'] < time())
doquery('UPDATE {{table}} SET bana=0 WHERE id='.$user['id'], 'users');