SA-MP Forums Archive
How to disable stunting bonuses? - 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: How to disable stunting bonuses? (/showthread.php?tid=280094)



How to disable stunting bonuses? - Sensitive - 30.08.2011

Hello.

How to disable that if i stunt i will get money?


Re: How to disable stunting bonuses? - Emmet_ - 30.08.2011

Under OnGameModeInit:

pawn Код:
EnableStuntBonusForAll(0);



Re: How to disable stunting bonuses? - TTJJ - 30.08.2011

Hi Sesitive,

You can disable stunt bonus for all players by adding the following to your OnGameModeInit function:
pawn Код:
EnableStuntBonusForAll(false);
Or you can disable for an individual by adding the following to your OnPlayerConnect function:
pawn Код:
EnableStuntBonusForPlayer(playerid,false);
More info on these functions can be found here:
https://sampwiki.blast.hk/wiki/EnableStuntBonusForPlayer
https://sampwiki.blast.hk/wiki/EnableStuntBonusForAll

Cheers,

TJ