Jump to content

PlayerTeam: Difference between revisions

Added alternative for CLIENTSIDE scripts
(Note about clientside scripts.)
(Added alternative for CLIENTSIDE scripts)
Line 14: Line 14:
:The player is on the Gold team.
:The player is on the Gold team.


Note: This always returns 0 in a CLIENTSIDE script.
Note: This always returns 0 in a CLIENTSIDE script. Use <code>GetPlayerInfo(ConsolePlayerNumber(), PLAYERINFO_TEAM)</code> instead.


==Examples==
==Examples==