docs: sly example for IsNetwork()

Tobias Zwick 2011-07-19 13:27:43 +02:00
parent 36644a1287
commit f55a480c6f
2 changed files with 15 additions and 0 deletions

View File

@ -6241,6 +6241,10 @@ msgstr "Prüft, ob Value eine Referenz ist."
msgid "Returns whether the current game is a network game."
msgstr "Prüft, ob das aktuelle Spiel ein Netzwerkspiel ist."
#: sdk/script/fn/IsNetwork.xml:20(desc)
msgid "Displays a sly message based on telltale signs: If there two players in the game and it is not a network game, the round must be played locally on splitscreen only. Probably a friend came over? Also, the first player usually belongs to the person who installed the game."
msgstr "Gibt eine verschmitzte Nachricht anhand von einigen Anzeichen aus: Wenn genau zwei Spieler im Spiel sind und dies kein Netzwerkspiel ist, muss die aktuelle Runde im split screen gespielt werden. Vielleicht ist ein Freund vorbeigekommen? Der erste Spieler gehört normalerweise zu der Person die das Spiel installiert hat."
#: sdk/script/fn/Inside.xml:16(desc)
msgid "Input value"
msgstr "Eingabewert"

View File

@ -9,6 +9,17 @@
<version>5.1 OC</version>
<syntax><rtype>bool</rtype></syntax>
<desc>Returns whether the current game is a network game.</desc>
<examples>
<example>
<code>Log("Welcome to the mean and dirty flint melee. Everything is allowed!");
if(<funclink>GetPlayerCount</funclink>() == 2 &amp;&amp; !IsNetwork())
{
Log("Especially looking on your friend's side of the screen and taking away his controls!");
Log("So, don't hold back only because you are %s's guest, %s! :-D", <funclink>GetPlayerName</funclink>(0),<funclink>GetPlayerName</funclink>(1));
}</code>
<text>Displays a sly message based on telltale signs: If there two players in the game and it is not a network game, the round must be played locally on splitscreen only. Probably a friend came over? Also, the first player usually belongs to the person who installed the game.</text>
</example>
</examples>
</func>
<author>jwk</author><date>2002-04</date>
</funcs>