You are not logged in.

Newbie'

Professional

  • "Newbie'" started this thread

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

1

Tuesday, December 10th 2013, 3:46pm

Kurze Hilfe wegen Plugin

Hallo,

Hab mich selbst schon dran versucht nur will es bei mir leider nicht :D
Könnte mir einer kurz sagen wie ich es machen könnte das der Command kill/explode nur geblockt wird wenn man in Team blau spielt? (TF2)

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
#pragma semicolon 1 

#include <sourcemod> 

#define PL_VERSION "0.3.8" 

new Handle:g_IsEnabled = INVALID_HANDLE;

public Plugin:myinfo =
{ 
	name    	= "disable_kill", 
	author  	= "Doktor", 
	description = "Disable the Kill and explode command for TF2.", 
	version 	= PL_VERSION, 
	url     	= "http://iron.site.nfoservers.com/sourcemod_plugins/disable_kill.zip" 
}; 

public OnPluginStart() 
{ 
	AddCommandListener(cmd_kill, "kill"); 
	AddCommandListener(cmd_explode, "explode"); 
	
	g_IsEnabled = CreateConVar("disable_kill_enabled", "1", "Is this mod enabled?", FCVAR_NOTIFY|FCVAR_PLUGIN);
} 

public Action:cmd_kill(client, const String:command[], args)
{ 
	if(!g_IsEnabled)
	{
    	return Plugin_Continue;
	}

	if(GetUserAdmin(client) == INVALID_ADMIN_ID)
	{
		CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
    	return Plugin_Stop;
	}
	else
	{
    	return Plugin_Continue;
	}
} 

public Action:cmd_explode(client, const String:command[], args)
{
	if(!g_IsEnabled)
	{
    	return Plugin_Continue;
	}

	if(GetUserAdmin(client) == INVALID_ADMIN_ID)
	{
		CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
    	return Plugin_Stop;
	}
	else
	{
    	return Plugin_Continue;
	}
}


Wäre euch echt dankbar :D

MfG,
Newbie'

TeC

Beginner

Posts: 45

wcf.user.option.userOption53: Ja

  • Send private message

2

Tuesday, December 10th 2013, 3:51pm

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
#pragma semicolon 1 

#include <sourcemod> 

#define PL_VERSION "0.3.8" 

new Handle:g_IsEnabled = INVALID_HANDLE;

public Plugin:myinfo =
{ 
	name    	= "disable_kill", 
	author  	= "Doktor", 
	description = "Disable the Kill and explode command for TF2.", 
	version 	= PL_VERSION, 
	url     	= "http://iron.site.nfoservers.com/sourcemod_plugins/disable_kill.zip" 
}; 

public OnPluginStart() 
{ 
	AddCommandListener(cmd_kill, "kill"); 
	AddCommandListener(cmd_explode, "explode"); 
	
	g_IsEnabled = CreateConVar("disable_kill_enabled", "1", "Is this mod enabled?", FCVAR_NOTIFY|FCVAR_PLUGIN);
} 

public Action:cmd_kill(client, const String:command[], args)
{ 
	if(!g_IsEnabled)
	{
    	return Plugin_Continue;
	}

	if(GetUserAdmin(client) == INVALID_ADMIN_ID && GetClientTeam(client) == 3)
	{
		CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
		return Plugin_Stop;
	}
	else
	{
    	return Plugin_Continue;
	}
} 

public Action:cmd_explode(client, const String:command[], args)
{
	if(!g_IsEnabled)
	{
    	return Plugin_Continue;
	}

	if(GetUserAdmin(client) == INVALID_ADMIN_ID && GetClientTeam(client) == 3)
	{
		CPrintToChat(client, "{olive}[VSH]{default} LaLaLa Text folgt");
		return Plugin_Stop;
	}
	else
	{
    	return Plugin_Continue;
	}
}

Newbie'

Professional

  • "Newbie'" started this thread

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

3

Tuesday, December 10th 2013, 4:31pm

Hallo,

Danke dir, läuft prima hab diese Daten nun in meine saxtonhale.sp geaddet damit sich eben der hal nicht mehr töten kann.

MfG,
Newbie'

Micha

Intermediate

Posts: 378

Occupation: Management

wcf.user.option.userOption53: Ja

  • Send private message

4

Tuesday, December 10th 2013, 5:49pm

Könntest du als Update für den zukünftigen SH Plugins ja mal bei Alliedmodders veröffentlichen, ich find die Funktion auch nicht schlecht, vielleicht wird das dann standardmäßig da eingebaut.

Newbie'

Professional

  • "Newbie'" started this thread

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

5

Tuesday, December 10th 2013, 6:53pm

Kann es dir gerne privat adden hab in meiner sp sehr viele änderungen sowie fixes.

Das und das! Hab es auch schon im SM Forum hinterlegt.

MfG,
Newbie'

Micha

Intermediate

Posts: 378

Occupation: Management

wcf.user.option.userOption53: Ja

  • Send private message

6

Tuesday, December 10th 2013, 11:40pm

Gerne doch, adde mich nochmal in Steam, ich hätte da auch was schönes für dich :)

Newbie'

Professional

  • "Newbie'" started this thread

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

7

Wednesday, December 11th 2013, 7:48am

Done, hab dir via Handy in Steam eine Einladung geschickt hoffe diese kam an kann es vom Handy aus nicht genau sehen. Bin ab 14 Uhr ON.

EDIT: Hast die Einladung in Steam, bin für heute off schick mir einfach eine Liste in Steam deiner gewünschten Änderungen ich mach es dir dann morgen direkt nach der Arbeit.

MfG,
Newbie' vom Handy :bigri:

This post has been edited 1 times, last edit by "Newbie'" (Dec 11th 2013, 7:34pm)


Similar threads