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

[Znote AAC] Top fraggers

Raggaer

Godly Member
Joined
Jul 25, 2012
Messages
1,557
Solutions
8
Reaction score
957
Location
Spain
Hello, this is a simple topfraggers page for znote acc, TESTED ON TFS_03

create a file called fraggers.php and add this

Thanks

- - - Updated - - -

BTW edited code to work with table, the one I posted was bugged, sorry xD update main post, thanks

PHP:
<?php
require_once 'engine/init.php';
include 'layout/overall/header.php';
?>
<h2>Top Fraggers</h2>
<?php 
 

$i = 0; 
$ee = mysql_query("SELECT `p`.`name` AS `name`, COUNT(`p`.`name`) as `frags` 
 FROM `killers` k 
 LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` 
 LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` 
WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1 
 GROUP BY `name` 
 ORDER BY `frags` DESC, `name` ASC 
 LIMIT 0,30;")or die(mysql_error());
 echo '<table><tr class="yellow"><td>Name</td><td>Frags</td></tr>';
while($e = mysql_fetch_assoc($ee)) 

{ 
 $i++; 
 echo 
 
 '<tr><td>'.$e['name'] .'</td> <td> '.$e['frags'].'</tr><br>'; 
} 
echo '</table>'; 
?>
<?php

include 'layout/overall/footer.php';
?>


No time for photo sorry, we are done!
Ejoy :.3
 
Last edited by a moderator:
keep those coming Raggaer
Znote should add all those thing u released etc and release a new version with all these new things soon :D
 
Thanks

- - - Updated - - -

BTW edited code to work with table, the one I posted was bugged, sorry xD update main post, thanks

PHP:
<?php
require_once 'engine/init.php';
include 'layout/overall/header.php';
?>
<h2>Top Fraggers</h2>
<?php 
 

$i = 0; 
$ee = mysql_query("SELECT `p`.`name` AS `name`, COUNT(`p`.`name`) as `frags` 
 FROM `killers` k 
 LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` 
 LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` 
WHERE `k`.`unjustified` = 1 AND `k`.`final_hit` = 1 
 GROUP BY `name` 
 ORDER BY `frags` DESC, `name` ASC 
 LIMIT 0,30;")or die(mysql_error());
 echo '<table><tr class="yellow"><td>Name</td><td>Frags</td></tr>';
while($e = mysql_fetch_assoc($ee)) 

{ 
 $i++; 
 echo 
 
 '<tr><td>'.$e['name'] .'</td> <td> '.$e['frags'].'</tr><br>'; 
} 
echo '</table>'; 
?>
<?php

include 'layout/overall/footer.php';
?>
 
Used it but for some reason it jump so far down on the site, I would like it to be closer to the menu table..
How do I do that?

Swev
 
Hello i use 0.3.6 can you make so highscore works on my site ? execute.hopto.org i have lots of bugs :/

- - - Updated - - -

lol
 
hmm sorry i'm kinda newb on this. what do i fix?

Code:
Access denied for user ''@'localhost' (using password: NO)
go to config.php and check for your mysql settings it seems you didnt feel anything inside the config.php
 
go to config.php and check for your mysql settings it seems you didnt feel anything inside the config.php

I got that problem too, in config.php its already the data neccsary to reach the database...
Otherwise i couldnt enter the entire website o.o
 
i had a trouble too with serverinfo.php using znoteaac (sayin that aac can't read cfg.lua directory) but i replaced it for highscores :/
my mysql config is good atm, the site is online with no trouble
 
is giving me this error for TFS_01

Fatal error: Uncaught Error: Call to undefined function mysql_query() in C:\xampp\htdocs\topfrag.php:10 Stack trace: #0 {main} thrown in C:\xampp\htdocs\topfrag.php on line 10
 
same here tfs 0.4
The Znote AAC has it already I found out. IF your website has the the menu bar "killer" thats the top fragger section. They just named "kills or killer" once you start killing you will start seeing the top murderers and the top death Tables appearing. I hope it works for you
 
Back
Top