04.08.2014, 04:58
Use EnableStuntBonusForAll.
enable - 1 to enable the bonus, 0 to disable them.
This function can be placed in OnGameModeInit.
Code example:
EDIT: You can also use EnableStuntBonusForPlayer, which is the same, but it will only affect one player.
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 Код:
EnableStuntBonusForAll(enable);
This function can be placed in OnGameModeInit.
Code example:
pawn Код:
public OnGameModeInit()
{
EnableStuntBonusForAll(0); //This will disable all stunt bonus.
return 1;
}
pawn Код:
EnableStuntBonusForAll(playerid, enable);
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.
}