29.01.2014, 03:02
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.
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;
}



