Stunts Bonus
#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


Messages In This Thread
Stunts Bonus - by Sarra - 04.08.2014, 04:51
Respuesta: Stunts Bonus - by EduGTA - 04.08.2014, 04:58
Re: Stunts Bonus - by Sarra - 04.08.2014, 05:29

Forum Jump:


Users browsing this thread: 1 Guest(s)