Jump to content

Script: GM'S ONLINE *AVANZADO.


fuuton97
 Share

Recommended Posts

Buenas,

 

Les traigo esta script de Gm's online, este te mostrará el nombre de los gm's y su estado Online y/o offline.

 

Código:

 

</div>
<table>
<tr>
  <td width=75 align=center>Nombre</td>
  <td width=75 align=center>Estatus</td>
</tr>
</Table>
<div id=splatz></div>
<table>
<?php
$GMLIST = array('[ADM]Diralk','[SGM]Ecko','[GM]ToTTo','[GM]Arkantos'); // Agregar Nombres de los Gm's
for($i=0;$i<count($GMLIST);$i++)
		{
		$sqlCmd = mysql_fetch_array(mysql_query("SELECT *,count(*) as total_line FROM player.player WHERE name = '".$GMLIST[$i]."' AND DATE_SUB(NOW(), INTERVAL 5 MINUTE) < last_play LIMIT 1"));
		?>
		<tr><td><FONT SIZE=3><?=$GMLIST[$i];?></FONT></td>
		<?php
		if ($sqlCmd['total_line'] > 0){
			echo "<td><font color=#639c4e> <FONT SIZE=3>(Online)</FONT></font></p></td>";
		}else{
			echo "<td><font color=#8b0000> <FONT SIZE=3>(Offline)</FONT></font></p></td>";
		}
		}
	  
?>
</tr>
</table>

Donde están los nombres de los Gm's deben colocar los que ustedes tienen en GmList, tiene que estar Igual.

 

Una Imagen de Prueba:

Imagen enviada

 

Saludos.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...