SA-MP Forums Archive
Fighting Styles - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Fighting Styles (/showthread.php?tid=344499)



Fighting Styles - iRage - 21.05.2012

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.


Re: Fighting Styles - JaKe Elite - 21.05.2012

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


Re: Fighting Styles - $$inSane - 21.05.2012

put if(GetPlayerFightingStyle(playerid)=>style;


Re: Fighting Styles - iRage - 21.05.2012

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.


Re: Fighting Styles - MP2 - 21.05.2012

GetPlayerFightingStyle..?


Re: Fighting Styles - JaKe Elite - 21.05.2012

sorry for mistake i meant to be GetPlayerFightingStyle

Note: To Late...


Re: Fighting Styles - iRage - 21.05.2012

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?


Re: Fighting Styles - 2KY - 21.05.2012

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