Author
|
Message
|
Veteran Member
Join Date: Nov 2007
Location: Unknown
|
09-17-2008
, 16:29
Health Display Code
|
#1
|
Can Someone help me with this code
Quote:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Health Display"
#define VERSION "1.0"
#define AUTHOR "LeviN"
public plugin_init() {
register_event("Health", "do_health", "b")
public do_health() {if (cvar_enabled == 1)
return PLUGIN_CONTINUE
new id = read_data(0)
new health = read_data(1)
if (g_zombie[id] == true) {
set_hudmessage(255, 255, 255, 0.25, 0.75, 2, 0.05, 1000.0, 0.1, 3.0, 1)
show_hudmessage(id, "Health: %d", health)
}
return PLUGIN_CONTINUE
}
|
__________________
|
|
|
|