- Documentation
- Server functions
- setPlayerAnnounceValue
Function
setPlayerAnnounceValue
Sets a value announced for the player, e.g. a score shown in the server list.
Syntax
bool setPlayerAnnounceValue(player thePlayer, string key, string value)Arguments
thePlayerplayer- The player.
keystring- The key.
valuestring- The value.
Returns
true on success.
Example
setPlayerAnnounceValue(player, "score", tostring(getElementData(player, "score") or 0))