Fighting Styles
#1

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.

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));
}
Using OnPlayerShootPlayer include, Any ideas?

Notes:
RPJLEx returns a job level.
Reply
#2

Is your special fight style is use by SetPlayerSpecialAction?
if yes. then check if they are using special attack such as Kung Fu/Boxing/Kick blahblahblah
Reply
#3

put if(GetPlayerFightingStyle(playerid)=>style;
Reply
#4

Fighting styles have nothing to do with special actions... misters.
I'm talking about SetPlayerFightingStyle, and if I make a check for the fighting style then it wouldn't work for normal attacks which isn't what I'm trying to do here.
Reply
#5

GetPlayerFightingStyle..?
Reply
#6

sorry for mistake i meant to be GetPlayerFightingStyle

Note: To Late...
Reply
#7

Would using GetPlayerFightingStyle REALLY REALLY REALLY cause any difference to a script that doesn't work for fighting styles without even putting check limitations?

Sorry to say but where's the logic?
Reply
#8

You can use the native OnGivePlayerDamage (probably not the exact name, sorry; i'm rusty) to do this. You no longer need the include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)