SetPlayerAnnounceValue
From Multi Theft Auto: Wiki
This function allows you to change ASE announce values for any player using a specified key. As an example this can be used to change the "score" value which will be shown at game-monitor.com's server list.
Syntax
bool setPlayerAnnounceValue ( element thePlayer, string key, string value )
Required Arguments
- thePlayer: The player whos announce value you wish to change.
- key: The key which the value will be stored at.
- value: The value you wish to store.
Returns
Returns true if the value was set succesfully, false otherwise.
Example
Click to collapse [-]
ServerThis small example adds a command that allows you to set your own "score" value.
function setScore ( playerSource, cmdName, scoreValue ) if ( scoreValue ) then setPlayerAnnounceValue ( playerSource, "score", scoreValue ) end end addCommandHandler ( "score", setScore )
See Also
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerMoney
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerMoney
- setPlayerMuted
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- setPlayerTeam
- setPlayerWantedLevel
FROM VERSION 1.3.1 r4689 ONWARDS
FROM VERSION 1.3.2 ONWARDS
- spawnPlayer
- takePlayerMoney
- getPlayerFromName
- getPlayerIP
- getPlayerName
- redirectPlayer
- setPlayerName