PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
#define HP 900
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "daj_hp", "a", "1=0", "2=0")
}
public daj_hp()
{
new players = get_playersnum()
for (new i = 1; i <= players; i++)
{
set_user_health(i, HP)
client_print(0,print_chat,"Player with UID %d have %d HP",i, get_user_health(i))
}
}
Why this doesn't work? Look on screen ->