21.05.2012, 11:54
Alright so basically, I'm trying to make punches 'n kicks stronger.
It works perfecty with normal attacking but when it comes to using special fight styles attacks it doesn't work.
Using OnPlayerShootPlayer include, Any ideas?
Notes:
RPJLEx returns a job level.
It works perfecty with normal attacking but when it comes to using special fight styles attacks it doesn't work.
pawn Code:
if(GetPlayerWeapon(Shooter) == 0)
{
new hit = strval(RPJLEx(Shooter, JOB_BOXER));
new Float:OldHP; GetPlayerHealth(Target, OldHP);
SetPlayerHealth(Target, OldHP-((hit*2)-2));
}
Notes:
RPJLEx returns a job level.