Stunts Bonus
#1

Hi , when someone does an "Insane Stunt" gets some cash,
How do I disable that?
Reply
#2

Use EnableStuntBonusForAll.

pawn Код:
EnableStuntBonusForAll(enable);
enable - 1 to enable the bonus, 0 to disable them.

This function can be placed in OnGameModeInit.

Code example:
pawn Код:
public OnGameModeInit()
{
    EnableStuntBonusForAll(0); //This will disable all stunt bonus.
    return 1;
}
EDIT: You can also use EnableStuntBonusForPlayer, which is the same, but it will only affect one player.

pawn Код:
EnableStuntBonusForAll(playerid, enable);
playerid - The player's ID that will be affected.
enable - 1 to enable stunt bonus for that player, or 0 to disable them.

Code example:
pawn Код:
public OnPlayerConnect(playerid)
{
   EnableStuntBonusForPlayer(playerid, 0); // Disable stunt bonuses when the player connects to the server.
}
Reply
#3

I'll rep you as soon as I read this and apply it (a little busy atm)
----------------
thanks alot, works I'll rep+ you as soon as I can, gave too much reps today
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)