Jump to content



Recommended Posts



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




  <td width=75 align=center>Nombre</td>
  <td width=75 align=center>Estatus</td>
<div id=splatz></div>
$GMLIST = array('[ADM]Diralk','[SGM]Ecko','[GM]ToTTo','[GM]Arkantos'); // Agregar Nombres de los Gm's
		$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>
		if ($sqlCmd['total_line'] > 0){
			echo "<td><font color=#639c4e> <FONT SIZE=3>(Online)</FONT></font></p></td>";
			echo "<td><font color=#8b0000> <FONT SIZE=3>(Offline)</FONT></font></p></td>";

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



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.

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.

  • Recently Browsing   0 members

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