remove money from stunting - 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: remove money from stunting (
/showthread.php?tid=187408)
remove money from stunting -
Garc1a - 02.11.2010
how do you remove gaining money from stunting.
I followed this guide:
https://sampforum.blast.hk/showthread.php?tid=186988 to make a anti money hacking system and stunting bans you.
Re: remove money from stunting -
Hornet600 - 02.11.2010
EnableStuntBonusForAll(playerid, 0); that should work
Re: remove money from stunting -
Garc1a - 02.11.2010
Quote:
Originally Posted by Hornet600
EnableStuntBonusForAll(playerid, 0); that should work
|
Where do I put that..
'Enable' would add it.. not remove it
Re: remove money from stunting -
Miguel - 02.11.2010
It actually disables it, since the second parameter is 0.
Put in
OnGameModeInit:
pawn Код:
public OnGameModeInit()
{
// ...
EnableStuntBonusForAll(playerid, 0);
// ...
return 1;
}
Re: remove money from stunting -
Garc1a - 02.11.2010
Quote:
Originally Posted by Miguel
It actually disables it, since the second parameter is 0.
Put in OnGameModeInit:
pawn Код:
public OnGameModeInit() { // ... EnableStuntBonusForAll(playerid, 0); // ... return 1; }
|
Gives you a error as you have 'playerid'
Should be:
pawn Код:
public OnGameModeInit()
{
EnableStuntBonusForAll(0);
return 1;
}