Zum Hauptinhalt springen

EnableStuntBonusForPlayer

Description

Toggle stunt bonuses for a player. Enabled by default.

NameDescription
playeridThe ID of the player to toggle stunt bonuses for.
bool:enable'true' to enable stunt bonuses and 'false' to disable them.

Returns

true - The function executed successfully.

false - The function failed to execute. The player is not connected.

Examples

public OnPlayerConnect(playerid)
{
EnableStuntBonusForPlayer(playerid, false); // Disable stunt bonuses when the player connects to the server.
return 1;
}