Raised This Month: $10 Target: $400
 2% 

Button Log (Zombie Escape) Cs 1.6


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

Description:

This Plugin Can Show Player Who Pressed The Button .


Ex:

[ZE] (Name) Press the Button 'door1'
-
[ZE] (Name) Press the Button 'door2'
-
[ZE] (Name) Press the Button 'boat'
-
[ZE] (Name) Press the Button 'zzz'
-
zzz = The player who called









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 "[P]erfec[T] [S]cr[@]s[H]"

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) // ta target pra ver o nome do botao

	if(!class[0])
		entity_get_string(entity, EV_SZ_target, class, 31)
		
	client_printcolor(0, "!g[ZE] !t%s!y Press the Button !t'%s'", name, class)

	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
	
	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 Plugin For Only Counter-Strike 1.6 .
This Is My First Plugin , Hope this is useful ^^
This Plugin Is Very Usefull For Zombie Escape and ty
Attached Files
File Type: sma Get Plugin or Get Source (Button.sma - 46 views - 1.6 KB)

Last edited by McTavish; Today at 06:11. Reason: Edit Code :)
McTavish is offline
McTavish
Junior Member
Join Date: May 2021
Old 08-14-2021 , 15: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 , 09: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 , 10: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 , 07: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
McTavish
Junior Member
Join Date: May 2021
Old 10-22-2021 , 07:25   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #6

Quote:
Originally Posted by OciXCrom View Post
What makes it Counter-Strike only?
Hey , i saw this plugin and copy and paste here and i saw someone saying only cs 1.6 and yep
McTavish is offline
McTavish
Junior Member
Join Date: May 2021
Old 10-22-2021 , 07:25   Re: Button Log (Zombie Escape) Cs 1.6
Reply With Quote #7

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
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 13:09.


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