Raised This Month: $ Target: $400
 0% 

revive plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheDemonIII
Junior Member
Join Date: Aug 2005
Old 05-29-2006 , 14:17  
Reply With Quote #7

is this what you mean? if so it doesnt work, it says that i have immunity (which i do) then says amx_revive isnt a command


Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "Revive"
#define VERSION "1.0"
#define AUTHOR "Demon"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_concmd("amx_revive","revive_player", ADMIN_KICK, "Revive a player.")
}

public revive_player(id, level, cid)
{
	if (!cmd_access(id, level, cid,2))
	{
		return PLUGIN_HANDLED
	}
	new Player[30]
	new  PlayerIndex
	read_argv(1,Player,29)

	PlayerIndex = cmd_target(id, Player)
	if(!is_user_alive(PlayerIndex))
	{
		spawn(PlayerIndex)
		return(PLUGIN_HANDLED)
	}
	
	return(PLUGIN_HANDLED)
}
TheDemonIII 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 16:20.


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