EnableStuntBonusForPlayer

From SA-MP Wiki

Jump to: navigation, search


Description:

Toggle stunt bonuses for a player. Enabled by default.


Parameters:
(playerid, enable)
playeridThe ID of the player to toggle stunt bonuses for.
enable1 to enable stunt bonuses and 0 to disable them.


Return Values:

  • 1: The function executed successfully.
  • 0: The function failed to execute. The player is not connected.


Example Usage:

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

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
Navigation
Toolbox
In other languages