Element/Player: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Добавление языков) |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 11: | Line 11: | ||
[[Category:Element Types]] | [[Category:Element Types]] | ||
[[hu: | [[en:Element/Player]] | ||
[[ru:Element/Player]] | |||
[[hu:Element/Player]] | |||
[[it:Elemento Player]] | [[it:Elemento Player]] | ||
[[es:Elemento/Player]] | [[es:Elemento/Player]] | ||
[[de:Element/Player]] | [[de:Element/Player]] | ||
[[ | [[zh-cn:元素/玩家]] |
Latest revision as of 20:12, 14 April 2021
The player class represents pedestrians controlled by clients. A player object is created when a client connects to the server and destroyed when he quits. Players cannot be created or destroyed otherwise.
The element type of this class is "player".
Related scripting functions
Client
- getLocalPlayer
- getPlayerMapBoundingBox
- getPlayerMapOpacity
- isPlayerMapVisible
- resetBlurLevel
- isPlayerHudComponentVisible
- Shared
- 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
Server
- 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