me doy cuenta que en el thread de raddish varios lo necesitaban, lo posteare
PHP Code:
#include <amxmodx>
#include <csstats>
#include <zombieplague>
#define PLUGIN "New style rank"
#define VERSION "1.0"
#define AUTHOR "Alka"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /rank", "cmdShowRank");
register_clcmd("viewrank", "cmdShowRank");
}
public cmdShowRank(id)
{
static stats[8], body[8];
new rank_pos = get_user_stats(id, stats, body);
new max_rank = get_statsnum();
new name[33];
get_user_name(id, name, 32);
static host_name[32];
get_cvar_string("hostname", host_name, 31);
static motd[1501], len;
len = format(motd, 1500,"<body bgcolor=#000000><font color=#87cefa><pre>");
len += format(motd[len], 1500-len,"<center><img src=^"http://picturinga.com.ar/images/sinttulo1.png^"></center></img>");
len += format(motd[len], 1500-len,"<center><h4><font color=^"blue^"> %s </font></h4></center>", host_name);
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Nombre :</B> <font color=^"white^"> %s</color></left>^n", name);
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Ranking :</B> <font color=^"white^">%d / %d</color></left>^n", rank_pos, max_rank);
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Zombies Matados :</B> <font color=^"white^"> %d</color></left>^n", stats[0]);
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Muertes :</B> <font color=^"white^"> %d</color></left>^n", stats[1]);
len += format(motd[len], 1500-len,"<left><font color=^"red^"><B>Ammo Packs :</B> <font color=^"white^"> %d</color></left>^n", zp_get_user_ammo_packs(id));
show_motd(id, motd, "Zombie Plague Niveles Rank!");
return 0;
}
es el mismo que le puse a raddish
__________________