Onplayershootweapon
#5

Quote:
Originally Posted by nickstar
Посмотреть сообщение
What i'm trying to do is make it play a noise with only a certain weapon so... would i do this

Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    if(GetPlayerWeapon(playerid) == 23)
    {
	    PlaySoundForPlayersInRange(6003, 14.0, x, y, z);
    }
    return 1;
}
Yes, you'd just put the 0's in on the x,y,z axis as mentioned above. That should work, tried it in a blank GM and it did for me. If it doesn't, then something in your GM might be muting it..
Reply


Messages In This Thread
Onplayershootweapon - by nickstar - 29.01.2014, 03:02
Re: Onplayershootweapon - by Excelize - 29.01.2014, 03:08
Re: Onplayershootweapon - by nickstar - 29.01.2014, 03:15
Re: Onplayershootweapon - by [FSaF]Jarno - 29.01.2014, 04:44
Re: Onplayershootweapon - by Excelize - 29.01.2014, 20:53
Re: Onplayershootweapon - by nickstar - 30.01.2014, 01:01

Forum Jump:


Users browsing this thread: 1 Guest(s)