|
Senior Member
Join Date: Jun 2010
Location: Venezuela
|
10-22-2010
, 10:39
Re: [ES] Colocar columnas HTML en el /top15 (Solucionado)
|
#22
|
Quote:
Originally Posted by g_often
Parpadeo a esto no lo saqué de tu code e.e ya lo tenía hace mucho...
@bello
apenas puedo te ayudo, tengo que terminar algo.
@ asdito
Prueba esto:
PHP Code:
#include <amxmodx>
public plugin_init() { register_plugin( "Test", "1.0", "G_often" ) register_clcmd( "say /top15", "CmdTestTop15" ) }
public CmdTestTop15( id ) { static Name[33], iMotd[2001], iLen; get_user_name( id, Name, 32 ) iLen = format(iMotd, sizeof iMotd - 1,"<body bgcolor=#ff0000><font color=#2efe9a><pre>"); iLen += format(iMotd[iLen], (sizeof iMotd - 1) - iLen,"<center><h2> Top 15 </h2></center>^n^n");
iLen += format(iMotd[iLen], (sizeof iMotd - 1) - iLen,"<table border=1><tr><th>#</th><th>Nick</th><th>Kills</th><th>Hits</th><th>Shots</th><th>HS</th><th>Eff</th><th>Acc.</th></tr>"); for( new i = 1; i <= 15; i++ ) iLen += format(iMotd[iLen], (sizeof iMotd - 1) - iLen, "<tr><th>%9i</th><th>%-22.22s</th><th>%8i</th><th>%7i</th><th>%6i</th><th>%5i</th><th>%4i</th><th>%3i%%</th></tr>",i, Name, 10, 5, 131, 3, 130, 7 ) iLen += format(iMotd[iLen], (sizeof iMotd - 1) - iLen, "</table></font>" ) show_motd( id, iMotd, "Top15"); return PLUGIN_HANDLED; }
|
gracias g_often espero tu ayuda! ^^
__________________
|
|
|
|