warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
EnableStuntBonusForPlayer
Description
Toggle stunt bonuses for a player. Enabled by default.
Name | Description |
---|---|
playerid | The 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;
}
Related Functions
- EnableStuntBonusForAll: Toggle stunt bonuses for all players.