You are not logged in.

KmK

Unregistered

1

Thursday, January 3rd 2013, 11:37pm

Plugin zusammenstellen.Brauche Hilfe

Hallo,

Hab jetzt endlich nach langer Zeit das Plugin gefunden was ich schon immer haben wollte.
https://www.sourcemod.net/showthread.php?t=38242

Nur steht da man muss was in die server.cfg und in die player_activate.cfg einfügen.
Kann mir da vielleicht jemand helfen das Plugin so zusammenzustellen,
dass man nur eine .py Datei hat und die in eventscripts Ordner unter einen Ordner einfügen muss und dann noch in die Autoexec eitragen.

Vielen Dank im Voraus :)

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

2

Friday, January 4th 2013, 12:50am

Ich schreibs dir später in Python um..
gruß

FfoPrinz

Intermediate

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

3

Friday, January 4th 2013, 9:08am

Gibt es denn so ein Plugin für Sourcemod ???

MFG
FfoPrinz
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



KmK

Unregistered

4

Friday, January 4th 2013, 10:32am

ok danke :)

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

5

Friday, January 4th 2013, 1:23pm

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
import es

MIN_KILLS = 4 #Minimum Kills die benötigt werden

ENDKILLSTREAKONDIE = 1 #Soll Killstreak aufhören beim Tod?

kills = {}

def player_death(ev):
	vic = ev["userid"]
	att = ev["attacker"]
	attn = ev["es_attackername"]
	if not att in kills:
		kills[att] = {}
		kills[att] = 0
		
	kills[att] += 1
		
	if kills[att] >= MIN_KILLS:
		es.centermsg("%s: %s KILLS in a row"% (attn, kills[att]))
		
	if ENDKILLSTREAKONDIE == 1:
		if not vic in kills:
			return
		kills[vic] = 0



als .py abspeichern, Name ist egal.
Ist nicht getestet

KmK

Unregistered

6

Friday, January 4th 2013, 8:54pm

Da ist ein Fehler:
File "/home/******/server/css_4783/css/cstrike/addons/eventscripts/KillingStreak/KillingStreak.py", line 3
SyntaxError: Non-ASCII character '\xf6' in file /home/gc06049/server/css_4783/css/cstrike/addons/eventscripts/KillingStreak/KillingStreak.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (KillingStreak.py, line 3)
Could not open script for addons/eventscripts/KillingStreak/es_KillingStreak.txt

Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

7

Friday, January 4th 2013, 11:52pm

Ja speichers als UTF-8 ab

FfoPrinz

Intermediate

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

8

Saturday, January 5th 2013, 12:49pm

Gibt es so ein Plugin auch für Sourcemod ???

MFG
FfoPrinz
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

9

Saturday, January 5th 2013, 12:53pm

Weiß ich nicht ^^
Könnte es dir aber auch für Sourcemod schreiben.

FfoPrinz

Intermediate

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

10

Saturday, January 5th 2013, 1:05pm

Wenn du so Sozial bist :thumbsup:
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...



Jackmaster

Super Moderator

Posts: 660

wcf.user.option.userOption53: Ja

  • Send private message

11

Saturday, January 5th 2013, 3:58pm

Du könntest das im Anhang mal probieren.
Jackmaster has attached the following files:
  • killstrk.sp (923 Byte - 131 times downloaded - latest: Jun 3rd 2024, 10:56am)
  • killstrk.smx (2.58 kB - 124 times downloaded - latest: Jun 3rd 2024, 10:56am)

FfoPrinz

Intermediate

Posts: 417

Location: 127.0.0.1

wcf.user.option.userOption53: Ja

  • Send private message

12

Saturday, January 5th 2013, 5:31pm

Jo ich teste mal durch
Danke für deine mühe ;)

MFG
FfoPrinz
Rechtschreibfehler sind voll normal und passieren nunmal 8)
Ich gebe keine Antworten auf PN, dazu ist das komplette Forum da um Anfragen zu beantworten ...