Would something like this work?
#1

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...)
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid)
{
    GivePlayerHealth(damagedid, amount);
    GivePlayerDamage(damagedid, 25);
    return 1;
}
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.
Reply


Messages In This Thread
Would something like this work? - by [XST]O_x - 16.07.2012, 23:24
Re: Would something like this work? - by ViniBorn - 16.07.2012, 23:59
Re: Would something like this work? - by HyDrAtIc - 17.07.2012, 00:00
Re: Would something like this work? - by [XST]O_x - 17.07.2012, 00:03
Re: Would something like this work? - by [XST]O_x - 17.07.2012, 10:28
Re: Would something like this work? - by [XST]O_x - 17.07.2012, 22:10
Re: Would something like this work? - by [XST]O_x - 17.07.2012, 22:39

Forum Jump:


Users browsing this thread: 1 Guest(s)