Onplayershootweapon
#1

I having a problem and i doubt this code is correct

What is the problem and how can i fix it? Thanks What i want is when the play get shot with a silenced pistol i want it to play a sound.

Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	new Float:x, Float:y, Float:z;
	new Float:x2, Float:y2, Float:z2;
 	GetPlayerPos(playerid, x, y, z);
 	GetPlayerPos(hitid, x2, y2, z2);
	if(playerid, 23, 1, BULLET_HIT_TYPE_PLAYER, hitid, x2, y2, z2)
	{
	    PlaySoundForPlayersInRange(6003, 14.0, x, y, z);
	}
	return 1;
}
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)