AWP Shake v1.02

Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 4444
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

AWP Shake v1.02

Post by greenie »

AWP Shake v1.02

Description:
Whenever you fire or scope with the AWP, it will cause you to shake slightly.

Cvars:
- awp_shake <1|0> - Turns the plugin off/on (Default: 1)

Required modules:
- Engine
#include <amxmodx>
#include <engine>

#define PLUGIN "AWP Shake"
#define VERSION "1.02"
#define AUTHOR "v3x"

new g_iMsgScreenShake

public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_event("CurWeapon","Current_Weapon","be","1=1")
register_cvar("awp_shake","1")
g_iMsgScreenShake = get_user_msgid("ScreenShake")
}

public plugin_modules() require_module("Engine")

public Current_Weapon(id)
{
if(!get_cvar_num("awp_shake"))
return PLUGIN_CONTINUE

new clip, ammo
new weapon = get_user_weapon(id,clip,ammo)

if(weapon == CSW_AWP)
{
if((get_user_button(id)&IN_ATTACK) || (get_user_button(id)&IN_ATTACK2))
{
message_begin(MSG_ONE,g_iMsgScreenShake,{0,0,0},id)
write_short( 1<<14 )
write_short( 1<<14 )
write_short( 1<<14 )
message_end()
}
}

return PLUGIN_CONTINUE
}
plugin
π‘΄π’‚π’šπ’ƒπ’† 𝒕𝒉𝒆 𝑬𝒂𝒓𝒕𝒉 π’Šπ’” 𝒕𝒉𝒆 𝑯𝒆𝒍𝒍 𝒐𝒇 𝑨𝒏𝒐𝒕𝒉𝒆𝒓 𝑷𝒍𝒂𝒏𝒆𝒕... ☒️

βœ… GAZDUIRE JOCURI / VPS / GAZDUIRE WEB / SERVERE DEDICATE - Stock NELIMITAT / Valabil comandati pe https://www.zonek.ro/
Post Reply

Return to β€œFun Stuff”