SA-MP Forums Archive
Detecting if player did a stunt? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detecting if player did a stunt? (/showthread.php?tid=74309)



Detecting if player did a stunt? - Robbin237 - 21.04.2009

Normally if you have unique stunt bonuses on, you get something in the bottom like

Tripple insane stunt bonus $500
Height blablabla
Flips blablablal

Now is there a callback or function to detect if a player got that?

Thnx


Re: Detecting if player did a stunt? - MenaceX^ - 21.04.2009

EnableStuntBonusForAll(0);
?


Re: Detecting if player did a stunt? - Green_Team - 21.04.2009

As far as i know you can't detect what height, distance, money the player got.

I assume you are needing the information for an anti-cheat of some sort?


Re: Detecting if player did a stunt? - Trooper[Y] - 21.04.2009

Probably make a timer,which check the money you got (GetPlayerMoney i think) and watch at the differences between the Timer before and the last check (save the amount of money in a variable).
If his/hers State is 2 (in car/bike) and he got under 500$,but more than 30$, he could have made a stunt...


Re: Detecting if player did a stunt? - Robbin237 - 22.04.2009

if the player did a stunt i'd wanted to set the playerscore + 1


Re: Detecting if player did a stunt? - pichai1122 - 16.04.2010

I have this problem too