Template:Player functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Template reworked)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<ul>
<ul>
<li>[[getAlivePlayers]]</li>
{{#if: {{{1|}}}
<li>[[getDeadPlayers]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | client
<li>[[getPlayerACInfo]]</li>
|
<li>[[getPlayerAnnounceValue]]</li>
    <!-- CLIENT functions -->
<li>[[getPlayerCount]]</li>
    <li>[[getLocalPlayer]]</li>
<li>[[getPlayerIdleTime]]</li>
    <li>[[getPlayerMapBoundingBox]]</li>
<li>[[getPlayerIP]]</li>
    <li>[[getPlayerMapOpacity]]</li>
{{New items|3.0158|1.5.7|
    <li>[[isPlayerMapVisible]]</li>
    <li>[[resetBlurLevel]]</li>
    <li>[[isPlayerHudComponentVisible]]</li>
    {{New items|3.0161|1.6.0|
    <li>[[isPlayerCrosshairVisible]]</li>
    |22751}}
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[getAlivePlayers]]</li>
    <li>[[getDeadPlayers]]</li>
    <li>[[getPlayerACInfo]]</li>
    <li>[[getPlayerAnnounceValue]]</li>
    <li>[[getPlayerCount]]</li>
    <li>[[getPlayerIdleTime]]</li>
    <li>[[getPlayerIP]]</li>
    <li>[[getPlayerVersion]]</li>
    <li>[[getRandomPlayer]]</li>
    <li>[[isPlayerMuted]]</li>
    <li>[[redirectPlayer]]</li>
    <li>[[resendPlayerACInfo]]</li>
    <li>[[resendPlayerModInfo]]</li>
    <li>[[setPlayerAnnounceValue]]</li>
    <li>[[setPlayerMuted]]</li>
    <li>[[setPlayerScriptDebugLevel]]</li>
    <li>[[setPlayerTeam]]</li>
    <li>[[setPlayerVoiceBroadcastTo]]</li>
    <li>[[setPlayerVoiceIgnoreFrom]]</li>
    <li>[[setPlayerWantedLevel]]</li>
    <li>[[spawnPlayer]]</li>
    <li>[[takePlayerScreenShot]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
 
<!-- SHARED functions-->
<li>[[getPlayerTeam]]</li>
<li>[[getPlayerBlurLevel]]</li>
<li>[[setPlayerBlurLevel]]</li>
<li>[[getPlayerSerial]]</li>
<li>[[forcePlayerMap]]</li>
<li>[[getPlayerScriptDebugLevel]]</li>
<li>[[getPlayerScriptDebugLevel]]</li>
|19626}}
<li>[[getPlayerFromName]]</li>
<li>[[getPlayerVersion]]</li>
<li>[[getPlayerMoney]]</li>
<li>[[getRandomPlayer]]</li>
<li>[[getPlayerName]]</li>
<li>[[isPlayerMuted]]</li>
<li>[[getPlayerNametagColor]]</li>
<li>[[redirectPlayer]]</li>
<li>[[getPlayerNametagText]]</li>
{{New items|3.0152|1.5.1-7633|
<li>[[getPlayerPing]]</li>
<li>[[resendPlayerACInfo]]</li>
<li>[[getPlayerWantedLevel]]</li>
}}
<li>[[givePlayerMoney]]</li>
<li>[[resendPlayerModInfo]]</li>
<li>[[isPlayerMapForced]]</li>
<li>[[setPlayerAnnounceValue]]</li>
<li>[[isPlayerNametagShowing]]</li>
<li>[[setPlayerMuted]]</li>
<li>[[setPlayerHudComponentVisible]]</li>
{{New items|3.0158|1.5.7|
<li>[[setPlayerMoney]]</li>
<li>[[setPlayerScriptDebugLevel]]</li>
<li>[[setPlayerNametagColor]]</li>
|19626}}
<li>[[setPlayerNametagShowing]]</li>
<li>[[setPlayerTeam]]</li>
<li>[[setPlayerNametagText]]</li>
<li>[[setPlayerVoiceBroadcastTo]]</li>
<li>[[takePlayerMoney]]</li>
<li>[[setPlayerVoiceIgnoreFrom]]</li>
<li>[[countPlayersInTeam]]</li>
<li>[[setPlayerWantedLevel]]</li>
<li>[[getPlayersInTeam]]</li>
<li>[[spawnPlayer]]</li>
<li>[[isVoiceEnabled]]</li>
<li>[[takePlayerScreenShot]]</li>
<li>[[setControlState]]</li>
<li>[[getControlState]]</li>
</ul>
</ul>
</includeonly>


'''Shared'''
<noinclude>
{{Shared_player_functions}}
{{Functions list info}}
 
[[Category:Functions templates]]</noinclude>
<noinclude>[[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.