Approved Press Button Info

Gameplay Addons
karan
Mod Tester
Mod Tester
India
Posts: 110
Joined: 3 Years Ago
Location: India
Has thanked: 2 times
Been thanked: 6 times
Age: 23
Contact:

Re: Press Button Info

#31

Post by karan » 1 Month Ago

VicKy wrote:
1 Month Ago
can you make this only in consule
its spamming in server
increase the delay if needed
Image

User avatar
wbyokomo
VIP
VIP
Malaysia
Posts: 5
Joined: 3 Weeks Ago
Location: Malaysia
Has thanked: 0
Been thanked: 0
Contact:

#32

Post by wbyokomo » 1 Week Ago

Hi, i just updated the plugin a bit.

Code: Select all

#include <amxmodx>
#include <hamsandwich>
#include <reapi>

#define TIME_COOLDOWN 5.0

public plugin_init()
{
	register_plugin("AMX183 Button Info", "1.0p", "SeRious_SaM,wbyokomo")

	RegisterHam(Ham_Use, "func_button", "OnButtonPressedPost", 1)
}

public OnButtonPressedPost(ent, id)
{
	static Float:fCurTime; fCurTime = get_gametime();
	if(get_entvar(ent, var_flTimeStepSound) <= fCurTime)
	{
		set_entvar(ent, var_flTimeStepSound, fCurTime + TIME_COOLDOWN)
		static szName[32]; get_user_name(id, szName, charsmax(szName));
		client_print_color(0, id, "^4[Waifu Escape]^3 %s^1 just pressed a^3 BUTTON^1 !", szName)
	}
}
Increase cooldown time TIME_COOLDOWN 5.0 if you want to see less message. It use amxmodx >= 183. I don't want to support old amxmodx version.
YOkOmO Zombie Escape X
Image
Zombie Plague
Image
MultiMod
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest