Jump to content
GIGN Forum

Amxbans Topliste


Recommended Posts

Šodien aiz garlaicības uzcepu šādu te scriptiņu, amxbans aktīvāko banotāju TOP 10

Shis skaita visus banus.

<? 
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("amxbans") or die(mysql_error());

$query = "SELECT admin_nick, COUNT(admin_nick) as banaani FROM amx_bans
GROUP BY admin_nick
ORDER BY banaani DESC
Limit 10"; 
$result = mysql_query("$query") or die(mysql_error());

echo "<table border='1' width='250' cellspacing='0' cellpadding='1'>
 <tr>
   <td align='center'>#</td>
   <td align='center'>Admins</td>
   <td align='center'>Banaani</td>
 </tr>";
while($row = mysql_fetch_array($result)){
$ranks = $ranks+1;

echo "
 <tr>
    <td  align='center' width='20'>". $ranks .".</td>
   <td width='180'>". $row['admin_nick'] ."</td>
   <td align='center' width='50'>". $row['banaani'] ."</td>
 </tr>
";
}
echo "</table>";
?>

Bet shis te atkal permanent banus

<? 
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("amxbans") or die(mysql_error());

$query = "SELECT admin_nick, ban_length, COUNT(admin_nick) as banaani FROM amx_bans
WHERE  ban_length='0'
GROUP BY admin_nick
ORDER BY banaani DESC
Limit 10"; 
$result = mysql_query("$query") or die(mysql_error());

echo "<table border='1' width='250' cellspacing='0' cellpadding='1'>
 <tr>
   <td align='center'>#</td>
   <td align='center'>Admins</td>
   <td align='center'>Banaani</td>
 </tr>";
while($row = mysql_fetch_array($result)){
$ranks = $ranks+1;

echo "
 <tr>
    <td  align='center' width='20'>". $ranks .".</td>
   <td width='180'>". $row['admin_nick'] ."</td>
   <td align='center' width='50'>". $row['banaani'] ."</td>
 </tr>
";
}
echo "</table>";
?>

ceru ka kādam noderēs thumbsup.gif

Link to comment
Share on other sites

Šodien aiz garlaicības uzcepu šādu te scriptiņu, amxbans aktīvāko banotāju TOP 10

Shis skaita visus banus.

<? 
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("amxbans") or die(mysql_error());

$query = "SELECT admin_nick, COUNT(admin_nick) as banaani FROM amx_bans
GROUP BY admin_nick
ORDER BY banaani DESC
Limit 10"; 
$result = mysql_query("$query") or die(mysql_error());

echo "<table border='1' width='250' cellspacing='0' cellpadding='1'>
 <tr>
   <td align='center'>#</td>
   <td align='center'>Admins</td>
   <td align='center'>Banaani</td>
 </tr>";
while($row = mysql_fetch_array($result)){
$ranks = $ranks+1;

echo "
 <tr>
    <td  align='center' width='20'>". $ranks .".</td>
   <td width='180'>". $row['admin_nick'] ."</td>
   <td align='center' width='50'>". $row['banaani'] ."</td>
 </tr>
";
}
echo "</table>";
?>

Bet shis te atkal permanent banus

<? 
mysql_connect("localhost", "root", "") or die(mysql_error());
mysql_select_db("amxbans") or die(mysql_error());

$query = "SELECT admin_nick, ban_length, COUNT(admin_nick) as banaani FROM amx_bans
WHERE  ban_length='0'
GROUP BY admin_nick
ORDER BY banaani DESC
Limit 10"; 
$result = mysql_query("$query") or die(mysql_error());

echo "<table border='1' width='250' cellspacing='0' cellpadding='1'>
 <tr>
   <td align='center'>#</td>
   <td align='center'>Admins</td>
   <td align='center'>Banaani</td>
 </tr>";
while($row = mysql_fetch_array($result)){
$ranks = $ranks+1;

echo "
 <tr>
    <td  align='center' width='20'>". $ranks .".</td>
   <td width='180'>". $row['admin_nick'] ."</td>
   <td align='center' width='50'>". $row['banaani'] ."</td>
 </tr>
";
}
echo "</table>";
?>

ceru ka kādam noderēs thumbsup.gif

kaa vinju var lietot?

Link to comment
Share on other sites

overmind lol tongue.gif ....

kip tu vinu man uztaisiji, jo man nebija laika, skatos gignaa jau publiceets biggrin.gif

nakamo script pats taisishu, savadak man besii, ka visadi noobi sha saliks sev ....

heh man krutaak, es intregreeju scriptu ieksh e107 menu tongue.gif

Tagad man jataisa tavam scriptam update, lai nebutu kaa citiem biggrin.gif

Link to comment
Share on other sites

overmind lol tongue.gif ....

kip tu vinu man uztaisiji, jo man nebija laika, skatos gignaa jau publiceets biggrin.gif

nakamo script pats taisishu, savadak man besii, ka visadi noobi sha saliks sev ....

heh man krutaak, es intregreeju scriptu ieksh e107 menu tongue.gif

Tagad man jataisa tavam scriptam update, lai nebutu kaa citiem biggrin.gif

evil6.gif4.gif31.gif

Da lāāb, nakamreiz pasaki lai nav public biggrin.gif

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...