You are not logged in.

Servus

Beginner

  • "Servus" started this thread

Posts: 2

Location: Donauwörth

Occupation: Fachinformatiker für SystemIntegration

wcf.user.option.userOption53: Ja

  • Send private message

1

Friday, March 29th 2013, 6:04am

Serverinfo

Servus,

ich hab schon auf einigen Servern oben rechts so einen schwarzen Balken gesehen der circa 1/8 Richtung Mitte des Bildschirms geht, am ende ist er abgerundet.
In diesem steht ein Text, Beispielweise die TS IP.

Ich hab schon nahezu alle Plugins durch aber ich finde die Funktion nicht.

Mein vorhaben besteht darin dort die TS IP im Wechsel mit der Website einzublenden. Ginge das?

Alternativ wäre mir auch ein schwarzer Balken circa 1 cm hoch am unteren Bildschirmrand recht.

Kann mir da einer helfen?


Grüße

Infr@red

Intermediate

Posts: 378

Occupation: Management

wcf.user.option.userOption53: Ja

  • Send private message

2

Friday, March 29th 2013, 8:43am

Ich kenne da nur den Top Text Balken des Adverts Plugins, der ist links oben in der Ecke, das geht mit diesem Plugin.

Impact

Super Moderator

Posts: 1,276

wcf.user.option.userOption53: Nein

  • Send private message

3

Friday, March 29th 2013, 12:00pm

Es würde helfen wenn du einen Screenshot oder ähnliches zu deinem Beitrag zufügst.

MfG
Impact

Servus

Beginner

  • "Servus" started this thread

Posts: 2

Location: Donauwörth

Occupation: Fachinformatiker für SystemIntegration

wcf.user.option.userOption53: Ja

  • Send private message

4

Friday, March 29th 2013, 5:41pm

Ok das ist jetzt unwichtig aber was ich mich Frage ist wie bekomm ich das sauber hin?

Source code

1
2
3
4
5
6
7
8
9
#include <sourcemod>

    public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
	{
	 			
		CreateDialog(client,"Test", DialogType_Msg);
		
	 	return true;
	}


Spoiler Spoiler

Ja es war tatsächlich dass was Infr@red meinte
Danke schonmal dafür, lässt sich das auch rechtsbündig machen?

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
if(StrContains(sType"T") != -1)
    {
        decl String:sColor[16];
        new iColor = -1iPos BreakString(sTextsColorsizeof(sColor));
        
        for(new 0sizeof(g_sTColors); i++)
        {
            if(StrEqual(sColorg_sTColors[i]))
                iColor i;
        }
        
        if(iColor == -1)
        {
            iPos     0;
            iColor   0;
        }
        
        new Handle:hKv CreateKeyValues("Stuff""title"sText[iPos]);
        KvSetColor(hKv"color"g_iTColors[iColor][0], g_iTColors[iColor][1], g_iTColors[iColor][2], 255);
        KvSetNum(hKv,   "level"1);
        KvSetNum(hKv,   "time",  10);
        
        for(new 1<= MaxClientsi++)
        {
            if(IsClientInGame(i) && !IsFakeClient(i) &&
               ((!bAdmins && !(bFlags && HasFlag(ifFlagList))) ||
                bAdmins && (GetUserFlagBits(i) & (ADMFLAG_GENERIC|ADMFLAG_ROOT))))
                CreateDialog(ihKvDialogType_Msg);
        }
        
        CloseHandle(hKv);
    }


Es benutzt ja die Funktion CreateDialog welche
folgenden möglichkeiten bereitstellt:
DialogType_Msg = 0, /**< just an on screen message */
DialogType_Menu, /**< an options menu */
DialogType_Text, /**< a richtext dialog */
DialogType_Entry, /**< an entry box */
DialogType_AskConnect /**< ask the client to connect to a specified IP */

mh, intressant

This post has been edited 1 times, last edit by "Servus" (Mar 29th 2013, 6:10pm)


Similar threads