Sie sind nicht angemeldet.

1

Donnerstag, 31. Juli 2008, 23:52

EPIC FAIL Skript ändern

Huhu!

Hab mal wieder ne Frage ;-)
Blick zwar mittlerweile bei den alten Skripten so einigermaßen durch und kann die Sachen ändern die ich möchte, aber Python macht wieder alles kaputt ;-)

Ihr kennt bestimmt das Skript EPIC FAIL.

Spoiler Spoiler

# EPIC FAIL
# slays players that do not complete the objective, and logs this event
# so that we can record it in hlstatsx/psychostats.
#
# by *XYZ*SaYnt
# credits: modelled after AutoSlay by the VIP
#

import es
import playerlib

info = es.AddonInfo()
info.name = "EpicFail"
info.version = "1.1"
info.author = "*XYZ*SaYnt"
info.url = "http://addons.eventscripts.com/addons/view/epicfail"
info.basename = "epicfail"
info.description = "Slays players for not accomplishing the objective, and logs it for hlstatsx/psychostats"



#This is our custom version of statlog until the python version comes out.
def statlog(userid,event):
es.server.queuecmd("statlog " + str(userid) + " " + event)

def hasmani():
has_mani = es.exists("variable","mani_admin_plugin_version")
return has_mani

reasons = {}
teaminf = {}

def load():
global reasons
global teaminf

reasons["#VIP_Escaped"] = (2,"for failing to kill the VIP")
reasons["#VIP_Assassinated"] = (3,"for failing to protect the VIP")
reasons["#VIP_Not_Escaped"] = (3,"because vip has not escaped")
reasons["#Target_Bombed"] = (3,"for failing to defuse the bomb")
reasons["#Bomb_Defused"] = (2,"for failing to protect the bomb")
reasons["#Target_Saved"] = (2,"for failing to plant the bomb")
reasons["#All_Hostages_Rescued"] = (2,"because hostages have been rescued")
reasons["#Hostages_Not_Rescued"] = (3,"for failing to rescue the hostages")

teaminf[2] = ("#t","T","Epic_Fail_T")
teaminf[3] = ("#ct","CT","Epic_Fail_CT")
es.set("epicfail_version",info.version)
es.msg("Epic Fail " + info.version + " by *XYZ*SaYnt loaded")


def round_end(ev):
global reasons
global teaminf
reason = ev['message']
if reason in reasons:
slayem(reasons[reason][0],reasons[reason][1])


d


Und zwar möchte ich das so ändern, dass die Spieler nicht geslayt werden und auch nichts im Chat ausgegeben wird. Es sollen lediglich die Events für die Stats geloggt werden.

Hoffe ihr könnt mir helfen

THX

2

Freitag, 1. August 2008, 00:03

Re: EPIC FAIL Skript ändern

kenne mich mit es überhaupt nicht aus, würde aber mal behaupten dass du die zeilen

Quellcode

1
es.msg("Epic Fail " + info.version + " by *XYZ*SaYnt loaded")

und

Quellcode

1
slayem(reasons[reason][0],reasons[reason][1])

einfach löschen musst. aber keine garantie dass es wirklich so geht^^

Chrisber

Administrator

Beiträge: 1 030

Wohnort: localhost

Rootserver vorhanden: Ja

  • Nachricht senden

3

Freitag, 1. August 2008, 00:10

Re: EPIC FAIL Skript ändern

Zitat von »"gonZo"«

kenne mich mit es überhaupt nicht aus, würde aber mal behaupten dass du die zeilen

Quellcode

1
es.msg("Epic Fail " + info.version + " by *XYZ*SaYnt loaded")

und

Quellcode

1
slayem(reasons[reason][0],reasons[reason][1])

einfach löschen musst. aber keine garantie dass es wirklich so geht^^


Richtig, nice GONZILEIN big-lol

So long, Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

4

Freitag, 1. August 2008, 00:47

Re: EPIC FAIL Skript ändern

muhaha, und so zahlt sich mein Informatik LK doch aus^^