right, i am a compleat noob at plugins and this is my first plugin so can some help me fix this.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <engine>
#include <fun>
#include <esf>
new PLUGIN[]="Dragon Ball Spawner"
new AUTHOR[]="TheAngel"
new VERSION[]="1.00"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("dbs_on", "1")
register_concmd("dbs_respawn", "cmd_respawn", ADMIN_LEVEL_A, "- respawn the balls")
}
public cmd_respawn(id, level, cid)
{
if (get_cvar_num("dbs_on")==0)
{
return PLUGIN_HANDLED
} else {
if (esf_has_dragonball=1)
{
console_cmd(+attack)
console_cmd(-attack)
}
remove_entity("item_dragonball")
remove_entity("item_dragonball")
remove_entity("item_dragonball")
remove_entity("item_dragonball")
remove_entity("item_dragonball")
remove_entity("item_dragonball")
remove_entity("item_dragonball")
create_entity("item_dragonball")
create_entity("item_dragonball")
create_entity("item_dragonball")
create_entity("item_dragonball")
create_entity("item_dragonball")
create_entity("item_dragonball")
create_entity("item_dragonball")
server_cmd(say "The Dragon Balls have all reset and are now where they spawn."
return PLUGIN_HANDLED
}
}