To check if a player has been hit:
PHP Code:
//#CLIENTSIDE
function onActionProjectile()
{
triggerserver("weapon", this.name, "BloodFX", player.x + 1.25 + random(0,0.5), player.y + 1 + random(0,1.5));
}
To make blood effects
PHP Code:
function onActionserverside()
{
if (params[0] == "BloodFX")
{
temp.i = putnpc2(params[1], params[2], "");
temp.i.join("bloodfx");
}
}
If I do this, the blood effects appear as much times as the amount of players there are on the level. How do I get around this to only show once? The blood effect is a GANI.