Raised This Month: $ Target: $400
 0% 

Use sound when action done.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 06-20-2010 , 12:23   Re: Use sound when action done.
Reply With Quote #1

Code:
#include <amxmodx> #include <fakemeta> #include <hamsandwich> new sound[] = "lala.wav" public plugin_precache() {     precache_sound( sound ) } public plugin_init() {     register_plugin( "Jump Shoot Ex", "1.0", "Wrecked" )         new wname[32]     for( new i = CSW_P228; i < CSW_P90; i++ )     {         if( i != 2 )         {             get_weaponname( i, wname, 31 )             RegisterHam( Ham_Weapon_PrimaryAttack, wname, "HamWeaponAttackPost", 1 )         }     }         RegisterHam( Ham_Player_Jump, "player", "HamJumpPost", 1 ) } public HamJumpPost( id ) {     if( !( pev( id, pev_oldbuttons ) & IN_JUMP ) && is_user_alive( id ) )     {         client_cmd( id, "spk %s", sound )     } } public HamWeaponAttackPost( wep ) {     new id = pev( wep, pev_owner )     if( !( pev( id, pev_oldbuttons ) & IN_ATTACK ) )     {         client_cmd( id, "spk %s", sound )     } }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ 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 14:55.


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