AMX RESPAWN - Plugins - GAMELIFE România Jump to content

1 Screenshot

About This File

Respawn Players!

Command: amx_revive target

 

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>

#define PLUGIN "amx_revive"
#define VERSION "1.0"
#define AUTHOR "COSMIN"


public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_concmd("amx_revive", "revive_user", ADMIN_RCON, "<target>")
}

public revive_user(id, level, cid) {
	
	if (!cmd_access(id, level, cid, 0 ))
	{
		console_print(id, "No Access To This Command");
		return PLUGIN_HANDLED;
	}
	
	new s_Name[32];
	read_argv ( 1, s_Name, charsmax ( s_Name ) );
	
	new i_Target = cmd_target ( id, s_Name, 2 );
	
	if(read_argc() != 2) {
		console_print(id, "Usage is : amx_revive <target>")
		
		return PLUGIN_HANDLED;
	}
	
	if ( !i_Target )
	{
		console_print ( id, "( - ! - ) Invalid Player ( - ! - )" );
		return PLUGIN_HANDLED;
	}
	
	if(!is_user_alive(i_Target)) {
		
		new targetname[32];
		get_user_name(i_Target, targetname, charsmax(targetname))
		
		ExecuteHamB(Ham_CS_RoundRespawn, i_Target)
		client_print(id, print_chat, "User %s Respawned", targetname)
	}
	
	return PLUGIN_HANDLED;
	
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

What's New in Version 05/23/2023 11:50 AM   See changelog

Released

No changelog available for this version.

  • Like 1

User Feedback

Create an account or sign in to leave a review

You need to be a member in order to leave a review

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

There are no reviews to display.



×
×
  • Create New...

Important Information