AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Primary attack sound spam (https://forums.alliedmods.net/showthread.php?t=204408)

Menethil 12-30-2012 05:12

Primary attack sound spam
 
Code:

public Primary_Attack_Post(Weapon){
    new id = get_pdata_cbase(Weapon, 41, 4)
   
    emit_sound(id, CHAN_WEAPON, MY_SOUND, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
}

My weapon speed(delay) is like deagle/awp , 1 bullet at a time and if i keep holding atack1 the sound is spamming, how can I stop that, and let it play only it shots


All times are GMT -4. The time now is 13:41.

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