Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
* [[RU/forcePlayerMap|forcePlayerMap]]
<includeonly>
* [[RU/getAlivePlayers|getAlivePlayers]]
<ul>
* [[RU/getDeadPlayers|getDeadPlayers]]
{{#if: {{{1|}}}
* [[RU/getPlayerACInfo|getPlayerACInfo]]
| {{#ifeq: {{lc:{{{1}}}}} | client
* [[RU/getPlayerAnnounceValue|getPlayerAnnounceValue]]
|
* [[RU/getPlayerBlurLevel|getPlayerBlurLevel]]
    <!-- CLIENT functions -->
* [[RU/getPlayerCount|getPlayerCount]]
    <li>[[getLocalPlayer]]</li>
* [[RU/getPlayerFromName|getPlayerFromName]]
    <li>[[getPlayerMapBoundingBox]]</li>
* [[RU/getPlayerIdleTime|getPlayerIdleTime]]
    <li>[[getPlayerMapOpacity]]</li>
* [[RU/getPlayerIP|getPlayerIP]]
    <li>[[isPlayerMapVisible]]</li>
* [[RU/getPlayerMoney|getPlayerMoney]]
    <li>[[resetBlurLevel]]</li>
* [[RU/getPlayerName|getPlayerName]]
    <li>[[isPlayerHudComponentVisible]]</li>
* [[RU/getPlayerNametagColor|getPlayerNametagColor]]
    {{New items|3.0161|1.6.0|
* [[RU/getPlayerNametagText|getPlayerNametagText]]
    <li>[[isPlayerCrosshairVisible]]</li>
* [[RU/getPlayerPing|getPlayerPing]]
    |22751}}
* [[RU/getPlayerSerial|getPlayerSerial]]
| {{#ifeq: {{lc:{{{1}}}}} | server
* [[RU/getPlayerTeam|getPlayerTeam]]
|
* [[RU/getPlayerVersion|getPlayerVersion]]
    <!-- SERVER functions -->
* [[RU/getPlayerWantedLevel|getPlayerWantedLevel]]
    <li>[[getAlivePlayers]]</li>
* [[RU/getRandomPlayer|getRandomPlayer]]
    <li>[[getDeadPlayers]]</li>
* [[RU/givePlayerMoney|givePlayerMoney]]
    <li>[[getPlayerACInfo]]</li>
* [[RU/isPlayerMapForced|isPlayerMapForced]]
    <li>[[getPlayerAnnounceValue]]</li>
* [[RU/isPlayerMuted|isPlayerMuted]]
    <li>[[getPlayerCount]]</li>
* [[RU/isPlayerNametagShowing|isPlayerNametagShowing]]
    <li>[[getPlayerIdleTime]]</li>
* [[RU/isVoiceEnabled|isVoiceEnabled]]
    <li>[[getPlayerIP]]</li>
* [[RU/redirectPlayer|redirectPlayer]]
    <li>[[getPlayerVersion]]</li>
* [[RU/resendPlayerModInfo|resendPlayerModInfo]]
    <li>[[getRandomPlayer]]</li>
* [[RU/setPlayerAnnounceValue|setPlayerAnnounceValue]]
    <li>[[isPlayerMuted]]</li>
* [[RU/setPlayerBlurLevel|setPlayerBlurLevel]]
    <li>[[redirectPlayer]]</li>
* [[RU/setPlayerHudComponentVisible|setPlayerHudComponentVisible]]
    <li>[[resendPlayerACInfo]]</li>
* [[RU/setPlayerMoney|setPlayerMoney]]
    <li>[[resendPlayerModInfo]]</li>
* [[RU/setPlayerMuted|setPlayerMuted]]
    <li>[[setPlayerAnnounceValue]]</li>
* [[RU/setPlayerName|setPlayerName]]
    <li>[[setPlayerMuted]]</li>
* [[RU/setPlayerNametagColor|setPlayerNametagColor]]
    <li>[[setPlayerScriptDebugLevel]]</li>
* [[RU/setPlayerNametagShowing|setPlayerNametagShowing]]
    <li>[[setPlayerTeam]]</li>
* [[RU/setPlayerNametagText|setPlayerNametagText]]
    <li>[[setPlayerVoiceBroadcastTo]]</li>
* [[RU/setPlayerTeam|setPlayerTeam]]
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
* [[RU/setPlayerVoiceBroadcastTo|setPlayerVoiceBroadcastTo]]
    <li>[[setPlayerWantedLevel]]</li>
* [[RU/setPlayerVoiceIgnoreFrom|setPlayerVoiceIgnoreFrom]]
    <li>[[spawnPlayer]]</li>
* [[RU/setPlayerWantedLevel|setPlayerWantedLevel]]
    <li>[[takePlayerScreenShot]]</li>
* [[RU/showPlayerHudComponent|showPlayerHudComponent]]
    }}
* [[RU/spawnPlayer|spawnPlayer]]
  }}
* [[RU/takePlayerMoney|takePlayerMoney]]
</br>
* [[RU/takePlayerScreenShot|takePlayerScreenShot]]
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
<noinclude>[[Category:Шаблоны функций|Player functions]]</noinclude>
}}
 
<!-- SHARED functions-->
<li>[[getPlayerTeam]]</li>
<li>[[getPlayerBlurLevel]]</li>
<li>[[setPlayerBlurLevel]]</li>
<li>[[getPlayerSerial]]</li>
<li>[[forcePlayerMap]]</li>
<li>[[getPlayerScriptDebugLevel]]</li>
<li>[[getPlayerFromName]]</li>
<li>[[getPlayerMoney]]</li>
<li>[[getPlayerName]]</li>
<li>[[getPlayerNametagColor]]</li>
<li>[[getPlayerNametagText]]</li>
<li>[[getPlayerPing]]</li>
<li>[[getPlayerWantedLevel]]</li>
<li>[[givePlayerMoney]]</li>
<li>[[isPlayerMapForced]]</li>
<li>[[isPlayerNametagShowing]]</li>
<li>[[setPlayerHudComponentVisible]]</li>
<li>[[setPlayerMoney]]</li>
<li>[[setPlayerNametagColor]]</li>
<li>[[setPlayerNametagShowing]]</li>
<li>[[setPlayerNametagText]]</li>
<li>[[takePlayerMoney]]</li>
<li>[[countPlayersInTeam]]</li>
<li>[[getPlayersInTeam]]</li>
<li>[[isVoiceEnabled]]</li>
<li>[[setControlState]]</li>
<li>[[getControlState]]</li>
</ul>
</includeonly>
 
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 19:20, 30 September 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.