increase the delay if needed
Press Button Info
Hi, i just updated the plugin a bit.
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.
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)
}
}
[MMG]~Zombie-Escape-X
[MMG]~Zombie-Plague-X
[MMG]~Multi-Mod-X
[MMG]~Zombie-Plague-X
[MMG]~Multi-Mod-X
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 0 guests