Onplayershootweapon
#4

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;
}
Just put 0s into all of the co-ordinate parameters, like this:
PlaySoundForPlayersInRange(6003, 14.0, 0, 0, 0);
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)