16.07.2012, 23:24
Hey, I haven't been scripting for a while and I really can't test this code as I don't have any player available to help me out, so I'll need your confirmation here.
Lets say I have a weapon that I want to constantly deal the damage of 25, doesn't matter which case.
Would this do the trick? (GivePlayerHealth and Damage are premade functions, of course...)
This isn't complete yet, as you see I haven't even written a code that will get the weapon ID, but I will take it from there if you can confirm this as working.
Lets say I have a weapon that I want to constantly deal the damage of 25, doesn't matter which case.
Would this do the trick? (GivePlayerHealth and Damage are premade functions, of course...)
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
GivePlayerHealth(damagedid, amount);
GivePlayerDamage(damagedid, 25);
return 1;
}