General Show Who Pressed The Button(Work With Any Version Of Zombie Escape)

Gameplay Addons
Post Reply
User avatar
Muhammet20
Member
Member
Turkey
Posts: 47
Joined: 4 Months Ago
Has thanked: 2 times
Been thanked: 0
Contact:

Show Who Pressed The Button(Work With Any Version Of Zombie Escape)

#1

Post by Muhammet20 » 1 Week Ago

hello guys

i know this plugin avilibable
but i updated it and now it can be work with any version of zombie escape mod
my zombie escape is v2.2
and i like to share this plugin

code

Code: Select all

/* Plugin created by Kaya Gaming (Muhammet Kaya) */

#include <amxmodx>
#include <hamsandwich>
#include <engine>
#include <cstrike>


#define PLUGIN_NAME "Break Entity Info"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "Muhammet Kaya"

public plugin_init()
{
    register_plugin(PLUGIN_NAME,PLUGIN_VERSION,PLUGIN_AUTHOR)
    RegisterHam(Ham_Use, "func_button", "ButtonUsed",1)
 }
public ButtonUsed(iEnt, CallerId)
{
	static name[32];
	get_user_name(CallerId, name, charsmax( name ))
	if(cs_get_user_team(CallerId) == CS_TEAM_CT)
	{
	print_colored(0,"!y[!y!gZombie Escape!g!y]!y !yButton Pressed By:!y !g%s!g",name)
	}
	return(HAM_IGNORED);
}
stock print_colored( const id, const input[], any: ... )
{
	
	new count = 1, players[32], i, player;
	static msg[191];
	if ( numargs() == 2 )
		copy( msg, 190, input );
	else
		vformat( msg, 190, input, 3 );
	replace_all( msg, 190, "!g", "^4" );
	replace_all( msg, 190, "!y", "^1" );
	replace_all( msg, 190, "!t", "^3" );
	if ( id )
	{
		if ( !is_user_connected( id ) ) return;
		players[0] = id;
	} else get_players( players, count, "ch" );
	for ( i = 0; i < count; i++ )
	{
		player = players[i];
		message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, player);
		write_byte( player );
		write_string( msg );
		message_end();
	}
}

enjoy :)

Post Reply

Who is online

Users browsing this forum: zlouly12 and 1 guest