isclient fix/docs/updates

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6576 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Bukz
2011-08-15 09:57:49 +00:00
parent 9bc08a583f
commit bfbce6aed2
4 changed files with 28 additions and 2 deletions
+20
View File
@@ -2419,6 +2419,9 @@ bind PRINT [ if (strcmp $last_server "") [ remember_server ]
<command name="curteam">
<description>Returns 1 if the local player is on the RVSF team, 0 if on CLA. If the player is in SPECTATOR it returns 2.</description>
<arguments>
<argument token="C" description="optional argument: client number" valueNotes="returns the specified client's cn instead"/>
</arguments>
<references>
<identifierReference identifier="team"/>
<identifierReference identifier="skin"/>
@@ -3144,6 +3147,23 @@ Output:
<argument token="T" description="check if submerged instead?" valueNotes="min 0/max 1/default 0"/>
</arguments>
</command>
<command name="isclient">
<description>Determines if the client number given is a valid client (player).</description>
<examples>
<example>
<code><![CDATA[echo (isclient 0)]]></code>
<explanation>Example output: 1</explanation>
</example>
<example>
<code><![CDATA[echo (isclient 32)]]></code>
<explanation>Example output: 0</explanation>
</example>
</examples>
<arguments>
<argument token="C" description="client number"/>
</arguments>
</command>
</identifiers>
</section>