AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   whats wrong with this code? (https://forums.alliedmods.net/showthread.php?t=220378)

cstrike37 07-10-2013 04:32

whats wrong with this code?
 
//trash, nvm solved it

radim 07-10-2013 06:33

Re: whats wrong with this code?
 
Try this:
Code:

public grenade_throw(id,ent,wid) //AFTER EDITING THIS THE SOUND IS NO LONGER WORKING
{
        cs_get_user_model(id, model, charsmax(model))
        if(wid == (CSW_HEGREANDE | CSW_FLASHBANG | CS_SMOKEGRENADE))
        {
                if(equal(model, "FGJapan"))
                        emit_sound(id, CHAN_VOICE, "radio/japanese/ct_fireinhole.wav" , 0.9, 0.92, 0, PITCH_NORM) 
                else 
                        emit_sound(id, CHAN_VOICE, "radio/default/ct_fireinhole.wav" , 0.9, 0.92, 0, PITCH_NORM) 
                break;
        }
        return PLUGIN_HANDLED
}


devilicioux 07-10-2013 07:14

Re: whats wrong with this code?
 
LoL Sorry But What did you actually edit dude ?


All times are GMT -4. The time now is 06:29.

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