De/MOTD Removal: Difference between revisions
< De
Jump to navigation
Jump to search
URAKOLOUY5 (talk | contribs) m (Added link to the new russian-version page. (Link zur neuen Seite mit der russischen Version hinzugefügt.)) |
m (obsolete language category) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{lang|MOTD Removal}} | ||
| | {{finishtranslation}} | ||
}} | |||
Dies ist eine einfache Corentfernung, um das MOTD ("Message Of The Day") Panel nicht mehr bei jedem Laden einer Map einzublenden. | Dies ist eine einfache Corentfernung, um das MOTD ("Message Of The Day") Panel nicht mehr bei jedem Laden einer Map einzublenden. | ||
== hl2mp_client.cpp == | ==<tt>hl2mp_client.cpp</tt>== | ||
Suche im Serververzeichnis des Quellcodes nach der Datei | Suche im Serververzeichnis des Quellcodes nach der Datei <tt>hl2mp_client.cpp</tt> und öffne diese. | ||
Suche nach '''const ConVar *hostname = cvar->FindVar( "hostname" );''' | Suche nach '''const ConVar *hostname = cvar->FindVar( "hostname" );''' und kommentiere den folgenden Codeblock aus oder lösche ihn: | ||
und kommentiere den folgenden Codeblock aus oder lösche ihn: | |||
<source lang="cpp"> | <source lang="cpp"> | ||
Line 27: | Line 22: | ||
</source> | </source> | ||
Die MOTD sollte nun nicht länger beim Laden einer Map auftauchen. | Die MOTD sollte nun nicht länger beim Laden einer Map auftauchen. | ||
{{ACategory|Programming}}{{ACategory|VGUI}} | |||
Latest revision as of 03:16, 22 August 2024

This page has not been fully translated.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.
Dies ist eine einfache Corentfernung, um das MOTD ("Message Of The Day") Panel nicht mehr bei jedem Laden einer Map einzublenden.
hl2mp_client.cpp
Suche im Serververzeichnis des Quellcodes nach der Datei hl2mp_client.cpp und öffne diese.
Suche nach const ConVar *hostname = cvar->FindVar( "hostname" ); und kommentiere den folgenden Codeblock aus oder lösche ihn:
const ConVar *hostname = cvar->FindVar( "hostname" );
const char *title = (hostname) ? hostname->GetString() : "MESSAGE OF THE DAY";
KeyValues *data = new KeyValues("data");
data->SetString( "title", title ); // info panel title
data->SetString( "type", "1" ); // show userdata from stringtable entry
data->SetString( "msg", "motd" ); // use this stringtable entry
pPlayer->ShowViewPortPanel( PANEL_INFO, true, data );
data->deleteThis();
Die MOTD sollte nun nicht länger beim Laden einer Map auftauchen.