SetPlayerStat
Jump to navigation
Jump to search
This function allows you to set the float value of a specific statistic for a player.
Syntax
bool setPlayerStat ( player player, stat, float value )
Required Arguments
- player: the player whose statistic you want to modify.
- stat: A whole number determining the stat ID.
- value: A float number the stat will be set to.
Returns
Returns true if the statistic was changed succesfully. Returns false if an invalid player is specified, or the stat-id/value is out of acceptable range.
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState