Element/Team: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Needs Checking|Needs XML syntax. --[[User:Jbeta|jbeta]] 13:08, 30 August 2007 (CDT)}}
The team class represents player teams. Players on the same team can use team features such as teamchat or friendly fire.
The team class represents player teams. Players on the same team can use team features such as teamchat or friendly fire.


The element type of this class is '''"team"'''.
The element type of this class is '''"team"'''.
'''NOTE:''' It is likely that the colorR/G/B values will be changed to the more standard color="#RRGGBB" before the final release.
==XML syntax==
<syntaxhighlight lang="xml">
<team name="" colorR="" colorG="" colorB="" friendlyfire=""/>
</syntaxhighlight>
===Required Attributes===
* '''name''': A name of the team
===Optional Attributes===
* '''colorR''': The red component of the team's color
* '''colorG''': The green component of the team's color
* '''colorB''': The blue component of the team's color
* '''friendlyfire''': Should friendly fire be allowed (true/false)


==Related scripting functions==
==Related scripting functions==
Line 10: Line 25:
===Server===
===Server===
{{Team functions}}
{{Team functions}}
[[Category:Element Types]]

Revision as of 16:53, 1 January 2008

The team class represents player teams. Players on the same team can use team features such as teamchat or friendly fire.

The element type of this class is "team".

NOTE: It is likely that the colorR/G/B values will be changed to the more standard color="#RRGGBB" before the final release.

XML syntax

<team name="" colorR="" colorG="" colorB="" friendlyfire=""/>

Required Attributes

  • name: A name of the team

Optional Attributes

  • colorR: The red component of the team's color
  • colorG: The green component of the team's color
  • colorB: The blue component of the team's color
  • friendlyfire: Should friendly fire be allowed (true/false)

Related scripting functions

Client


Server