Greetz!,
ich habe mir ein kleinen Mod ausgedacht, der es Spielern erlaubt sich von der HoF (Ruhmeshalle) zu distanzieren. Sprich, die User können in den Spielereinstellungen selbst festlegen, ob sie in der HoF (Ruhmeshalle) eingeblendet werden, oder nicht. Es wäre vielleicht für RP-Mods von Vorteil, da diese ja nicht bedingt damit zu tun haben. ;-)
Ich würde mich über Feedback, oder ähnliches freuen!
$this->bbcode_second_pass_code('', '/** * This script is powered by LotGD scene.Network * deine Community rund ums Programmieren für LotGD. (v0.97) * * @link http://forum.logd.dyndns.org/ **/') $this->bbcode_second_pass_code('', 'Datei: hof.php Suche: $playersperpage = 50;
Füge darunter hinzu: /** * The player fade in, if it participates to the yard. * Fade out and, if not. */ if ( $session['user']['prefs']['attendHof'] == 1 ) $hofUserListen = ' AND `acctid` <> '.$session['user']['acctid']; else $hofUserListen = '';
Suche: if ($data_header !== false) { for ($i = 0; $i < count($data_header); $i++) { output("<td>`b".$data_header[$i]."`b</td>", true); } }
Füge darunter hinzu: /** * The field for the plaything positions in SQL syntax add, * for later purposes. */ $sql = substr_replace($sql, 'prefs,', stripos($sql, 'name'), 0);
Suche: for ($i=0;$i<db_num_rows($result);$i++){ $row = db_fetch_assoc($result);
Füge darunter hinzu: /** * The respective player fade out, if it does * not participate in the yard! */ $userPrefs = unserialize($row['prefs']); if ( $userPrefs['attendHof'] == 0 ) continue;
Datei: prefs.php Suche: ,"nosounds"=>"Die Sounds deaktivieren?,bool"
Füge darunter hinzu: ,'attendHof'=>'In der HoF teilnehmen?,bool'')
Patch-Version, für RP-Mod: $this->bbcode_second_pass_code('', 'Suche: /** * The field for the plaything positions in SQL syntax add, * for later purposes. */ $sql = substr_replace($sql, 'prefs,', stripos($sql, 'name'), 0);
Ersetze durch: /** * The field for the plaything positions in SQL syntax add, * for later purposes. */ if ( stripos($sql, 'rppoints') === false ) $sql = substr_replace($sql, 'prefs,', stripos($sql, 'name'), 0);')
Zuletzt geändert von Kevz am So 15 Mär, 2009 13:27, insgesamt 3-mal geändert.
|