You are not logged in.

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.

uniQue

Intermediate

  • "uniQue" started this thread

Posts: 409

Occupation: Kaufman im Einzelhandel

wcf.user.option.userOption53: Ja

  • Send private message

1

Wednesday, October 8th 2014, 4:42pm

mat_dxlevel restrict

Könnte jemand mir das Plugin fixen ? Es gibt noch viele Spieler die mit mat_dxlevel 80 spielen damit man das berühmte Nvidia Smoke Bug nutzen kann. Auf einem Only D2 Server sehe ich sowas nicht ein. Alles was ein vorteil gegenüber andere Spieler verschafft ist für mich Cheaten.

Das Plugin habe ich schon getesten. Also wen ich mat_dxlevel 80 verwende, werde ich nicht vom Server gekickt.

Vielen Dank.

Dxlevel Restrict

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
#include <sourcemod>
#pragma semicolon 1
new Handle:CvarEnabled;

public Plugin:myinfo =
{
	name = "Dxlevel Restrict",
	author = "KK",
	description = "Simple kick players if there's dxlevel not are 80 or 81",
	version = "1.0",
	url = "http://www.attack2.co.cc/"
};

public OnPluginStart() 
{
	CvarEnabled = CreateConVar("sm_dxlevel_restrict_enabled", "1", "Sets whether Dxlevel Restrict is enabled");
}

public OnClientPostAdminCheck(client)
{
	if (GetConVarBool(CvarEnabled))
	{	
		QueryClientConVar(client, "mat_dxlevel", ConVarQueryFinished:QueryCallback);
	}
}

public QueryCallback(QueryCookie:cookie, client, ConVarQueryResult:result, const String:cvarName[], const String:cvarValue[])
{
	if (StrEqual(cvarName, "mat_dxlevel") && IsClientConnected(client) && IsClientInGame(client))
	{
		new cvarValue2 = StringToInt(cvarValue);

		if (cvarValue2 != 80 && cvarValue2 != 80)
		{
			KickClient(client, "You need to set mat_dxlevel to 81 or higher...");
		}
	}
}

CRYHACK

Professional

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

2

Wednesday, October 8th 2014, 4:51pm

Wieso nutzt du nicht SMAC diese Funktion ist dort vorhanden. Modul: smac_cvars

uniQue

Intermediate

  • "uniQue" started this thread

Posts: 409

Occupation: Kaufman im Einzelhandel

wcf.user.option.userOption53: Ja

  • Send private message

3

Wednesday, October 8th 2014, 5:01pm

Habe ich drauf ... Aber es kickt keinen... bzw mich nicht ... und das Plugin oben kickt mich wenn ich mat_dxlevel 95 habe und lässt alle mit mat_dxlevel 80 auf den Server.

Lg

uniQue

Intermediate

  • "uniQue" started this thread

Posts: 409

Occupation: Kaufman im Einzelhandel

wcf.user.option.userOption53: Ja

  • Send private message

4

Wednesday, October 8th 2014, 6:05pm

Ein Dankeschön an General :)
uniQue has attached the following files:

rain

Super Moderator

Posts: 1,410

Location: Lutherstadt Wittenberg

Occupation: Anlagenmechaniker

wcf.user.option.userOption53: Ja

  • Send private message

5

Thursday, October 9th 2014, 9:36am

Wäre es möglich auch eine log mit einzupflegen wo man sieht welcher Spieler gekickt wurde aufgrund von mat_dxlevel 80?





General

Super Moderator

Posts: 1,043

Location: Mönchengladbach

Occupation: Brückenkranführer / Staplerfahrer

wcf.user.option.userOption53: Nein

  • Send private message

6

Thursday, October 9th 2014, 11:58am

smac_addcvar mat_dxlevel greater kick 95

habs mal mit smac probiert und geht auch ^^

CRYHACK

Professional

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

7

Thursday, October 9th 2014, 12:43pm

Hatte es bis jetzt auch nicht drin. Hab es nun auch einmal bei mir getestet (Game TF2) läuft prima. :lovu:

uniQue

Intermediate

  • "uniQue" started this thread

Posts: 409

Occupation: Kaufman im Einzelhandel

wcf.user.option.userOption53: Ja

  • Send private message

8

Thursday, October 9th 2014, 3:31pm

Das mit Smac habe ich getestet. Es klappt ja aber es kickt nicht sofort. ^^

Edit: smac_addcvar mat_dxlevel equal kick 80

wäre doch besser das nur Leute gekickt werden die 80 haben und die anderen ab 81 - 95 können ruhig drauf :) weil das Smokebug nur bei 80 geht. :)

Similar threads