This is how you find out:
Code:
public plugin_init() {
register_forward( FM_PlaybackEvent, "hook_PlaybackEvent" );
}
public hook_PlaybackEvent( flags, id, eventindex ) {
client_print( 0, print_chat, "[PlaybackEvent] %i", eventindex );
}
This is a simple hook that will catch the PlaybackEvents and display what eventindex they were.
Fire the weapon you would like to block, and it will tell you which PlaybackEvent it was.
Now, look back a few posts when I made up the variable "desired_weaponfiring" and made an if statement something like
if( eventindex == desired_weaponfiring )
Now, this part should make more sense.
As far as if( user == desired_user ), that part is optional and is just a test in case you only want to do it for specific people.
__________________