setPlayerAnnounceValue | Multi Theft Auto: Wiki Skip to content

setPlayerAnnounceValue

Client-side
Server-side
Shared

Pair: getPlayerAnnounceValue

This page is incomplete! Help wanted!

Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.


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-state.com's server list.

Syntax

setPlayerAnnounceValue ( )

Code Examples

server

This 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