Code:
#include <amxmodx>
new g_pcvarCrosshair
new g_msgCrosshair
public plugin_init()
{
register_event("CurWeapon", "hook_curweapon", "b", "1=1", "2=18")
g_pcvarCrosshair = register_cvar("awp_crosshair", "1")
g_msgCrosshair = get_user_msgid("Crosshair")
}
public hook_curweapon(id)
{
if(get_pcvar_num(g_pcvarCrosshair))
{
message_begin(MSG_ONE, g_msgCrosshair, {0, 0, 0}, id)
write_byte(1)
message_end()
}
}
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>