Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "My Info"
#define VERSION "1.0"
#define AUTHOR "Zenith77"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /myinfo", "sayInfo", 0, "- displays You're Info")
}
public sayInfo(id) {
new weapon, clip, ammo
new health
new name[32]
get_user_ammo(id, weapon, clip, ammo)
health = get_user_health(id)
get_user_name(id, name, 31)
set_hudmessage(255, 0, 0, -1.0, 0.00, 0, 6.0, 4.0)
show_hudmessage(id, "Name:%s AMMO: %d HP:%d", name, ammo, health)
}