AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   new knife sound? (https://forums.alliedmods.net/showthread.php?t=164500)

phertz2620 08-12-2011 11:34

new knife sound?
 
I have found a sound i want to play on the server when a person being knifed.

I edited miscstats.sma - But it dosent work ?



PHP Code:

if (wpnindex == CSW_KNIFE && (KnifeKill || KnifeKillSound))
    {
        if (
KnifeKill)
        {
            new 
killer_name[32], victim_name[32]
            
            
get_user_name(killerkiller_name31)
            
get_user_name(victimvictim_name31)
            
            
set_hudmessage(255100100, -1.00.2516.06.00.50.15, -1)
            
ShowSyncHudMsg(0g_he_sync"%L"LANG_PLAYERg_KinfeMsg[random_num(03)], killer_namevictim_name)
        }
        
        if (
KnifeKillSound)
            
play_sound("misc/ghhaha")
    } 

Some there can help a little bit :)?

phertz2620 08-27-2011 18:58

Re: new knife sound?
 
bump


All times are GMT -4. The time now is 03:28.

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