You are not logged in.

[CS:GO] auto Teamjoin

Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Zero

Intermediate

  • "Zero" started this thread

Posts: 201

wcf.user.option.userOption53: Nein

  • Send private message

1

Tuesday, November 26th 2013, 6:25pm

auto Teamjoin

Hallo
ich suche eine möglichkeit auf meinem Server auto Teamjoin einzustellen ( so wie im Matchmaking ) das man automatisch einem Team zugewieden wird.
Die plugins die ich noch von CSS fand funktionieren irgendwie nicht so wie es soll bei CS GO , kennt noch jemand so ein plugin oder kann man das mit einem Befehl in der Server.cfg erreichen ?
Ich habe dieses noch gefunden aber das ist ja nicht das was ich möchte .

hannibal-l-

Professional

Posts: 552

Occupation: Fisi

wcf.user.option.userOption53: Ja

  • Send private message

2

Tuesday, November 26th 2013, 9:14pm

Ja da wäre ich auch interessiert :D Ich habe nur welche gefunden die haufenweise bugs verursachen, wenn man bots nutzt oder sie funktionierten garnicht.
Wer deutlich spricht, riskiert verstanden zu werden.

http://steamcommunity.com/profiles/76561197996267687

Posts: 18

wcf.user.option.userOption53: Nein

  • Send private message

3

Tuesday, November 26th 2013, 10:19pm

Möchtest du das ein Plugin das dich automatisch das Team auswählen lässt (z.B. Terrorist) ohne das der Spieler die Wahl hat? Oder möchtest du ein Plugin das ihn daran hindert einem Team zu joinen wenn zu viele im anderen sind bzw. ihn ein Team zuweißt.
Oder ein Kombi daraus? Bsp: Ich joine auf den Server und bin automatisch im CT Team weil das gerade unterbelegt ist.

hannibal-l-

Professional

Posts: 552

Occupation: Fisi

wcf.user.option.userOption53: Ja

  • Send private message

4

Wednesday, November 27th 2013, 8:29am

autojoin bedeutet, dass der spieler keine wahl hat ;)
Wer deutlich spricht, riskiert verstanden zu werden.

http://steamcommunity.com/profiles/76561197996267687

Posts: 18

wcf.user.option.userOption53: Nein

  • Send private message

5

Wednesday, November 27th 2013, 9:12am

Der Spieler hat in beiden Fällen keine Wahl, bloß kann er bei einer Version eben noch dem Spec Team joinen.

Zero

Intermediate

  • "Zero" started this thread

Posts: 201

wcf.user.option.userOption53: Nein

  • Send private message

6

Wednesday, November 27th 2013, 2:04pm

Ihr müßt ja hier nicht streiten ;) war ja nur die frage ob einer solch ein plugin kennt , oder es ist jemand von den Profis hier so nett und scriptet eins ( wenn das einfach so mal eben geht ) .

mfg

datGAMER

Beginner

Posts: 1

wcf.user.option.userOption53: Nein

  • Send private message

7

Tuesday, May 6th 2014, 12:26am

Kann mir mal jemand helfen warum endet die Runde nie irgendwie funktioniert es nicht so richtig nachdem er die Leute hinein Joint.

Spoiler Spoiler

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
#include <cstrike>
#include <sourcemod>
#include <sdktools>

public OnPluginStart()
{
    HookEvent("player_connect_full", Event_OnFullConnect, EventHookMode_Pre);
    HookEvent("cs_match_end_restart", Event_OnMatchRestart, EventHookMode_Pre);
    HookEvent("player_team", Event_OnPlayerTeam, EventHookMode_Pre);
    HookEvent("player_death", Event_OnPlayerDeath, EventHookMode_Pre);
    AddCommandListener(Command_Join, "jointeam");
}

public Action:Event_OnFullConnect(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if(!client || !IsClientInGame(client))
        return Plugin_Continue;

    new iRed, iBlue;
    for(new i = 1; i <= MaxClients; i++)
    {
        if(!IsClientInGame(i))
            continue;

        new iTeam = GetClientTeam(i);
        if(iTeam == CS_TEAM_T)
            iRed++;
        else if(iTeam == CS_TEAM_CT)
            iBlue++;
    }

    if(iRed < iBlue)
        SetEntProp(client, Prop_Send, "m_iTeamNum", CS_TEAM_T);
    else
        SetEntProp(client, Prop_Send, "m_iTeamNum", CS_TEAM_CT);

    ForcePlayerSuicide(client);
    CS_RespawnPlayer(client);
    return Plugin_Continue;
}

public Action:Event_OnMatchRestart(Handle:event, const String:name[], bool:dontBroadcast)
{
    new iRed, iBlue, iJoin;
    for(new i = 1; i <= MaxClients; i++)
    {
        if(!IsClientInGame(i))
            continue;

        switch(GetClientTeam(i))
        {
            case CS_TEAM_T:
                iRed++;
            case CS_TEAM_CT:
                iBlue++;
        }
    }

    for(new i = 1; i <= MaxClients; i++)
    {
        if(!IsClientInGame(i))
            continue;

        if(iRed < iBlue)
            iJoin = CS_TEAM_T;
        else if(iBlue < iRed)
            iJoin = CS_TEAM_CT;
        else
            iJoin = GetRandomInt(CS_TEAM_T, CS_TEAM_CT);

        switch(iJoin)
        {
            case CS_TEAM_T:
                iRed++;
            case CS_TEAM_CT:
                iBlue++;
        }

        ChangeClientTeam(i, iJoin);
    }
}

public Action:Event_OnPlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if(!client || !IsClientInGame(client))
        return Plugin_Continue;

    if(!IsPlayerAlive(client))
        CreateTimer(0.1, Timer_Respawn, GetClientUserId(client), TIMER_FLAG_NO_MAPCHANGE);
    return Plugin_Continue;
}

public Action:Timer_Respawn(Handle:timer, any:userid)
{
    new client = GetClientOfUserId(userid);
    if(!client)
        return Plugin_Continue;

    new iTeam = GetClientTeam(client);
    if(iTeam <= CS_TEAM_SPECTATOR)
        return Plugin_Continue;

    if(IsPlayerAlive(client))
        return Plugin_Continue;

    CS_RespawnPlayer(client);

    return Plugin_Continue;
}

public Action:Command_Join(client, const String:command[], argc)
{
    decl String:sJoining[8];
    GetCmdArg(1, sJoining, sizeof(sJoining));
    new iJoining = StringToInt(sJoining);
    if(iJoining == CS_TEAM_SPECTATOR)
        return Plugin_Continue;

    new iTeam = GetClientTeam(client);
    if(iJoining == iTeam)
        return Plugin_Handled;
    else
    {
        SetEntProp(client, Prop_Send, "m_iTeamNum", iJoining);
        ForcePlayerSuicide(client);
        CS_RespawnPlayer(client);
    }

    return Plugin_Continue;
}


public Action:Event_OnPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if(!client || !IsClientInGame(client))
        return Plugin_Continue;

    CreateTimer(0.1, Timer_Respawn, GetClientUserId(client), TIMER_FLAG_NO_MAPCHANGE);

    return Plugin_Continue;
}  


Beim nächsten Mal bitte den SP Button benutzen.

LG TempletonPeck

This post has been edited 2 times, last edit by "templetonpeck" (May 6th 2014, 11:48pm)