Scripting/Squirrel/Functions/SetShowOnlyTeamMarkers: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will set the player's tag visible to only his/her team. == Syntax == <pre>SetShowOnlyTeamMarkers ( bool );</pre> == Arguments == '''bool''' True / false. ==...")
 
Line 15: Line 15:
{
{
SetShowOnlyTeamMarkers( true );
SetShowOnlyTeamMarkers( true );
print ( "Show name tags setting is set to " + GetShowOnlyTeamMarkers() + "!");
print ( "Printing out the new state " + GetShowOnlyTeamMarkers() + "!");
}
}
</source>
</source>


- Xmair.
- Xmair.
- Text misplacement fixed. [ Doom_Kill3R ]


=== Notes ===
=== Notes ===


Call [[onScriptLoad]] and [[GetShowOnlyTeamMarkers]] were used in this example.
Call [[onScriptLoad]] and [[GetShowOnlyTeamMarkers]] were used in this example.
== Related Functions ==
== Related Functions ==


{{Scripting/Squirrel/Functions/Server_Settings}}
{{Scripting/Squirrel/Functions/Server_Settings}}

Revision as of 04:43, 24 April 2016

This function will set the player's tag visible to only his/her team.

Syntax

SetShowOnlyTeamMarkers ( bool );

Arguments

bool True / false.

Example

function onScriptLoad ()
{
SetShowOnlyTeamMarkers( true );
print ( "Printing out the new state " + GetShowOnlyTeamMarkers() + "!");
}

- Xmair. - Text misplacement fixed. [ Doom_Kill3R ]

Notes

Call onScriptLoad and GetShowOnlyTeamMarkers were used in this example.

Related Functions