OnPlayerShootPlayer help! :) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerShootPlayer help! :) (
/showthread.php?tid=335203)
OnPlayerShootPlayer help! :) -
ixesas - 17.04.2012
Hello, so I made a little function, when player shoot to player, starts "ring" sound, and the problem is: Sound works, but half of server players don't heard it, when shoot to player. Help meee!
CallBack:
PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
PlayerPlaySound(Shooter, 6401,0.0, 0.0, 10.0);
return 1;
}
Re: OnPlayerShootPlayer help! :) -
admantis - 17.04.2012
Perhaps some of your players have a RIP / Cracked / Pirate game version thus having lack of some sounds. By the way, I recommend you using the SA-MP OnPlayerGiveDamage instead of OnPlayerShootPlayer include which is pretty much deprecated.
Re: OnPlayerShootPlayer help! :) -
ixesas - 17.04.2012
Quote:
Originally Posted by admantis
Perhaps some of your players have a RIP / Cracked / Pirate game version thus having lack of some sounds. By the way, I recommend you using the SA-MP OnPlayerGiveDamage instead of OnPlayerShootPlayer include which is pretty much deprecated.
|
Thx, i will try it. Maybe sounds will works with "OnPlayerGiveDamage" callback?
Re: OnPlayerShootPlayer help! :) -
MP2 - 17.04.2012
Change the coordinates to 0, 0, 0 because you're playing it at 0, 0, 10
Re: OnPlayerShootPlayer help! :) -
ixesas - 17.04.2012
Quote:
Originally Posted by MP2
Change the coordinates to 0, 0, 0 because you're playing it at 0, 0, 10
|
Doesn't works for other players too..