Raised This Month: $32 Target: $400
 8% 

Button Log (Zombie Escape) Cs 1.6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
McTavish
Senior Member
Join Date: May 2021
Old 07-11-2021 , 16:48   Button Log (Zombie Escape) Cs 1.6
Reply With Quote #1

Description:

Many players suffer from some kind of player that ruins the run of the zombie escape by pressing some button (close the door on the team, call on the team,...etc) for that this plugin is for this kind of problem that gives you the name of the true criminal

How this plugin work:
This Plugin Show the Player Who Pressed The Button(LOG) on the chat only to admins with a flag (ADMIN_SLAY)
Author:Amnesia(Me)

Example:

***BUTTON PRESSED BY Human: Amnesia***
***BUTTON PRESSED BY Zombie: Amnesia***









Code:
/* Plugin generated by AMXX-Studio */ 
#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define PLUGIN "[ZP] Plugin: Show Button Pressed"
#define VERSION "1.0"
#define AUTHOR "Amnesia"

#define ADMIN_FLAG ADMIN_SLAY

new anti_flood_last_ent[33]

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	RegisterHam(Ham_Use, "func_button", "fw_UseStationary")
	RegisterHam(Ham_Use, "func_rot_button", "fw_UseStationary")
}

public fw_UseStationary(entity, caller, activator, use_type)
{
	if(anti_flood_last_ent[caller] == entity)
		return HAM_IGNORED
	
	static class[32]
	static name[32]; get_user_name(caller, name, 31);
	entity_get_string(entity, EV_SZ_targetname, class, 31) 

	if(!class[0])
		entity_get_string(entity, EV_SZ_target, class, 31)
	
	if(get_user_team(caller) == 1)
	{
		// Display message as red if the user is a terrorist
		client_printcolor(0, "*** BUTTON PRESSED BY Zombie %s ***", name)
	}
	else
	{
		// Display message as blue if the user is not a terrorist
		client_printcolor(0, "*** BUTTON PRESSED BY Human %s ***", name)
	}
	
	anti_flood_last_ent[caller] = entity
	remove_task(caller)
	set_task(3.0, "anti_flood_reset", caller)
	
	return HAM_IGNORED
}

public anti_flood_reset(id) anti_flood_last_ent[id] = 0

stock client_printcolor(const id,const input[], any:...)
{
	new msg[191], players[32], count = 1; vformat(msg,190,input,3);
	replace_all(msg,190,"!g","^4");    // green
	replace_all(msg,190,"!y","^1");    // normal
	replace_all(msg,190,"!t","^3");    // team
	replace_all(msg,190,"!r","^1");    // red
	replace_all(msg,190,"!b","^4");    // blue
	
	if (id) players[0] = id; else get_players(players,count,"ch");
	
	for (new i=0;i<count;i++)
	{
		if (is_user_connected(players[i]))
		{
			message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players[i]);
			write_byte(players[i]);
			write_string(msg);
			message_end();
		}
	}
}
This Is My First Plugin, I Hope this is useful ^^
This Plugin Is Very Useful For Zombie Escape and ty
Attached Files
File Type: sma Get Plugin or Get Source (ButtonLog.sma - 215 views - 1.9 KB)

Last edited by McTavish; 12-31-2022 at 08:59. Reason: UPDATED!
McTavish is offline
McTavish
Senior Member
Join Date: May 2021
Old 08-14-2021 , 14:09   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #2

Any Questions Tell Me Here ^^
McTavish is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-19-2021 , 08:28   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #3

Do not attach the amxx file.
Do not copy paste the source code in your post.

Also, this is too simple to be considered for approval.
__________________
HamletEagle is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 08-19-2021 , 09:27   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #4

Quote:
This Plugin For Only Counter-Strike 1.6 .
What makes it Counter-Strike only?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
braslevall
Junior Member
Join Date: Apr 2021
Old 08-26-2021 , 06:34   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #5

Csgo is not the cs for community stuff. Matchmaking officially killed anything decent, it certainly killed my favorite servers that would just run 100's of community made maps 192.168.100.1 192.168.1.1 on the classic rule set.
braslevall is offline
Old 10-22-2021, 06:25
McTavish
This message has been deleted by McTavish.
McTavish
Senior Member
Join Date: May 2021
Old 10-22-2021 , 06:25   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
Do not attach the amxx file.
Do not copy paste the source code in your post.

Also, this is too simple to be considered for approval.
im new , sry :p
McTavish is offline
McTavish
Senior Member
Join Date: May 2021
Old 12-31-2022 , 09:00   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #7

UPDATED!
__________________
No Steam = No Support.
McTavish is offline
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 12-31-2022 , 13:01   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #8

Are you not the author of the plugin ?
__________________
Spirit_12 is offline
McTavish
Senior Member
Join Date: May 2021
Old 12-31-2022 , 16:33   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #9

Quote:
Originally Posted by Spirit_12 View Post
Are you not the author of the plugin ?
I'm, my name is Amnesia but on the forum my name McTavish
__________________
No Steam = No Support.

Last edited by McTavish; 12-31-2022 at 16:33.
McTavish is offline
Reply


Thread Tools
Display Modes

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 01:18.


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