fuuton97 Publicado 8 de Octubre del 2012 Reportar Compartir Publicado 8 de Octubre del 2012 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: Saludos. Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Mensajes recomendados
Unirse a la conversación
Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.