Raised This Month: $ Target: $400
 0% 

help with esf plugin; dragon ball respawner


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
theangleofdoom
Junior Member
Join Date: Mar 2006
Old 05-13-2006 , 07:02   help with esf plugin; dragon ball respawner
Reply With Quote #1

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
	}
}
theangleofdoom is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode