tested and working:
PHP Code:
#include <amxmodx>
#pragma semicolon 1
public plugin_init()
register_event("CurWeapon", "Event_CurWeapon", "be");
public Event_CurWeapon(id)
{
new IsActive = read_data(1);
new wpn = read_data(2);
if(IsActive && wpn == CSW_DEAGLE)
client_print(id, print_chat, "Holding deagle");
}
You can edit the stuff you want from here.
__________________