I've only just started scripting (2 days ago) and I need one small code or snippet. I want to make a function to kill everyone on round-end. Except I don't know how...
Here's the code I've made so far (this was my second attempt at a plugin)
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Round-End Death"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"
new const death_warning[] = "There's 10 Seconds Remaining Before CombatZone Boredom Kills You!"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("event_round_start",2,"0=World triggered","1=Round_Start");
register_logevent("event_round_death",2,"0=World triggered","1=Round_Draw");
}
public event_round_start()
{
set_task(135.0,"warning_message")
}
public warning_message()
{
set_hudmessage(255, 255, 255, -1.0, -1.0, 0, 6.0, 3.5 , 0.75 , 0.75)
show_hudmessage(0, "[CZ] %s", death_warning)
}
public event_round_death(index)
{
}
ANY help would be greatly appreciated