example
PHP Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "[R]ak"
new id_ct, id_tt
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "RoundStart", "a", "1=0", "2=0")
}
public RoundStart() {
new players[32], pnum
get_players(players, pnum, "ae", "CT")
id_ct = players[random(pnum)]
get_players(players, pnum, "ae", "TERRORIST")
id_tt = players[random(pnum)]
if(id_ct && id_tt) {
set_user_health(id_ct, 200)
SendMsj(id_ct)
set_user_health(id_tt, 200)
SendMsj(id_tt)
}
}
public SendMsj(id)
client_print(id, print_chat, "[AMX] You won 200 of life")
__________________