Jump to content

Script: GM'S ONLINE *AVANZADO.


fuuton97

Mensajes recomendados

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.

Enlace para comentar
Compartir en otros sitios

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

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

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...