Raised This Month: $ Target: $400
 0% 

Solved Detecting If A Weapon Is Silenced


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-12-2015 , 11:58   Re: [HELP] Detecting If A Weapon Is Silenced
Reply With Quote #1

http://amxmodx.org/api/cstrike/cs_get_weapon_silen
__________________
HamletEagle is offline
hellmonja
Senior Member
Join Date: Oct 2015
Old 12-13-2015 , 01:41   Re: [HELP] Detecting If A Weapon Is Silenced
Reply With Quote #2

Hey thanks! I'm doing this:

PHP Code:
    if (cs_get_weapon_silen(CSW_MAKAROV))
    {
        
set_weapon_anim(invokerSHOOT_SILEN)
        
emit_sound(invokerCHAN_WEAPONFIRE_SOUNDVOL_NORMATTN_NORM0PITCH_NORM)
    }
    else
    {
        
set_weapon_anim(invokerSHOOT_ANIM)
        
emit_sound(invokerCHAN_WEAPONFIRE_SOUNDVOL_NORMATTN_NORM0PITCH_NORM)
    } 
but it doesn't seem to work. I'm trying to replace the shooting anim and sound on an extra weapon when it's silenced. but what happens with this is, the both anim and sound just don't work...
hellmonja is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode