How Can I Sett So If He Dies With /explode the sprite appears for the explosion *Edit* : And If There Are Enemy Players Nearby They Will Get Hurted.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Author"
#define TASK_EXPLODE 78798479879789789456759457694
new gExplosion
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /explode", "sayExplode")
}
public plugin_precache() {
gExplosion = precache_model("sprites/mushroom.spr")
}
public sayExplode(id)
{
user_kill(id,1)
}