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.

1

Friday, November 22nd 2013, 4:45pm

Würfel Plugin UmScripten

Hallo

Ich bräuchte mal Hilfe, und zwar Möchte ich das Würfel Plugin UnScripten.
Das Plugin schreibt den Würfel Command in den Client Game Chat, aber es soll in der Client Console geschrieben werden zum ausfüren.
Und den Würfel Command an sich ändern in !w .
Wen mir dabei Jemand Helfen könnte wehre echt nett.

Greetz
Rechtschreibfehler sind voll normal

NovoLine

Trainee

Posts: 107

wcf.user.option.userOption53: Nein

  • Send private message

2

Friday, November 22nd 2013, 9:44pm

Was genau soll denn alles in der Console stehen?
Was man Würfelt oder alles einfach?

Edit: Hab mal einfach alles in die Console gemacht..getestet ist es nicht !!
NovoLine has attached the following files:
  • css_dice.smx (38.51 kB - 127 times downloaded - latest: Apr 27th 2024, 10:21am)
  • css_dice.sp (88.66 kB - 120 times downloaded - latest: Apr 24th 2024, 6:41pm)

3

Friday, November 22nd 2013, 9:46pm

Der Befehl soll nicht im Clienten Chat geschrieben werden, sondern in der Console geschrieben werden sm_w. Halt in die Console das es im Chat nicht mehr steht!

Greetz
Rechtschreibfehler sind voll normal

NovoLine

Trainee

Posts: 107

wcf.user.option.userOption53: Nein

  • Send private message

4

Friday, November 22nd 2013, 9:49pm

aso das meinst du xD
Also naja wenn man /w eingibt, dann sieht man das nicht ^^ naja kann es dir auch in console machen

Edit: Hochgeladen! Schau mal obs geht :D
NovoLine has attached the following files:
  • css_dice.sp (88.4 kB - 135 times downloaded - latest: Apr 22nd 2024, 4:07pm)
  • css_dice.smx (38.48 kB - 133 times downloaded - latest: Apr 22nd 2024, 4:07pm)

5

Friday, November 22nd 2013, 10:12pm

Danke dir erst mall, aber es geht noch immer nicht richtig!
Des befehl wird noch immer im Chat ausgegeben und nicht in der Console!

Greetz
Rechtschreibfehler sind voll normal

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

6

Friday, November 22nd 2013, 10:32pm

Probier mal das im Anhang, ungetestet zudem hoff ich das ich verstanden habe was du von uns willst :D
Jackmaster has attached the following files:
  • css_dice.smx (39.07 kB - 136 times downloaded - latest: May 5th 2024, 4:12pm)
  • css_dice.sp (91.35 kB - 138 times downloaded - latest: Apr 22nd 2024, 4:07pm)

7

Friday, November 22nd 2013, 10:47pm

Danke dir erst mal Jackmaster.
Aber nein der nimmt den Befehl sm_w in der Console nicht an!

Greetz
Rechtschreibfehler sind voll normal

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

8

Friday, November 22nd 2013, 10:51pm

Meine Version sollte nur was für die Chatausgabe geändert haben

9

Friday, November 22nd 2013, 10:53pm

Also ich erkläre noch mall etwas deutlicher.

Ich wollte das Plugin so haben, das der Befehl in der Client Console angenommen wird.
Also sm_w in der Console angeommen wird vom Plugin!

Greetz
Rechtschreibfehler sind voll normal

fluxX

Super Moderator

Posts: 1,056

Location: Österreich

Occupation: IT Systemadministrator

wcf.user.option.userOption53: Ja

  • Send private message

10

Friday, November 22nd 2013, 11:56pm

Wenn ich das so verstanden hab, dann sollte das funktionieren. Hab die Befehle so eingestellt, dass diese jetzt über Console und Chat aufgerufen werden können (nur Console ist soweit ich weiß nicht möglich).

Greetz
fluxX has attached the following files:
  • css_dice.sp (90.42 kB - 140 times downloaded - latest: Yesterday, 8:23pm)
  • css_dice.smx (38.58 kB - 132 times downloaded - latest: Apr 22nd 2024, 4:07pm)

11

Saturday, November 23rd 2013, 9:22am

Ich danke dir fluxX es klappt!
köntes du das wohl auch noch so machen das nur die T's Würfeln können und die CT's nicht

Greetz
Rechtschreibfehler sind voll normal

Bara

Professional

Posts: 834

wcf.user.option.userOption53: Ja

  • Send private message

12

Saturday, November 23rd 2013, 12:01pm

Alt

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
public Action:Command_Say(client, args)
{
	if(g_bEnabled && client && IsClientInGame(client))
	{
		if(g_bRolled[client])
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_rolled");
		else if(g_iTeam[client] <= CS_TEAM_SPECTATOR)
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_spectate");
		else if(!g_bAlive[client])
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_dead");
		else if(g_iUsable != -1 && GetTime() > g_iUsable)
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_disabled");
		else if(KvGetNum(g_hKV_Abuse, g_sSteam[client], EFFECT_NONE))
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_abuse_apply");
		else if(!g_bEnding)
		{
			if(GetRandomFloat(0.00, 1.00) < g_fFailure)
			{
				if(GetRandomFloat(0.00, 1.00) < g_fFailure)
					CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_chance");
				else
				{
					g_bRolled[client] = true;
					CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_failure");
					
					for(new i = 1; i <= MaxClients; i++)
						if(i != client && IsClientInGame(i))
							PrintToConsole(i, "%s%t", g_sPrefixConsole, "all_command_failure", g_sName[client]);
				}
			}
			else
			{
				g_bRolled[client] = true;
				Void_IssueEffect(client, g_iEffectArray[GetRandomInt(0, (g_iNumEffects - 1))]);
			}
		}
		
		return Plugin_Handled;
	}

	return Plugin_Continue;
}

In dies ändern

Neu

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
public Action:Command_Say(client, args)
{
	if(g_bEnabled && client && IsClientInGame(client) && GetClientTeam(client) == CS_TEAM_T)
	{
		if(g_bRolled[client])
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_rolled");
		else if(g_iTeam[client] <= CS_TEAM_SPECTATOR)
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_spectate");
		else if(!g_bAlive[client])
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_dead");
		else if(g_iUsable != -1 && GetTime() > g_iUsable)
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_disabled");
		else if(KvGetNum(g_hKV_Abuse, g_sSteam[client], EFFECT_NONE))
			CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_abuse_apply");
		else if(!g_bEnding)
		{
			if(GetRandomFloat(0.00, 1.00) < g_fFailure)
			{
				if(GetRandomFloat(0.00, 1.00) < g_fFailure)
					CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_chance");
				else
				{
					g_bRolled[client] = true;
					CPrintToChat(client, "%s%t", g_sPrefixChat, "self_command_failure");
					
					for(new i = 1; i <= MaxClients; i++)
						if(i != client && IsClientInGame(i))
							PrintToConsole(i, "%s%t", g_sPrefixConsole, "all_command_failure", g_sName[client]);
				}
			}
			else
			{
				g_bRolled[client] = true;
				Void_IssueEffect(client, g_iEffectArray[GetRandomInt(0, (g_iNumEffects - 1))]);
			}
		}
		
		return Plugin_Handled;
	}

	return Plugin_Continue;
}

13

Saturday, November 23rd 2013, 2:15pm

Danke aber weis net welche Zeile bis wo :/

Greetz
Rechtschreibfehler sind voll normal

Newbie'

Professional

Posts: 580

Location: Zuhause

wcf.user.option.userOption53: Nein

  • Send private message

14

Saturday, November 23rd 2013, 2:24pm

Zeile 675 ist das wer sucht der findet.

Blacksilver

Intermediate

Posts: 298

Location: 127.0.0.1

Occupation: FISI

wcf.user.option.userOption53: Nein

  • Send private message

15

Saturday, November 23rd 2013, 2:30pm

Tipp fürs nächste mal:
Es gibt eigentlich überall eine Such funktion ;)
Come to the dark side,
we have cookies ;)

16

Saturday, November 23rd 2013, 2:52pm

Danke sehr an euch leiben.
Klappt nun alles

#closed

Greetz
Rechtschreibfehler sind voll normal

Similar threads