Lieber Besucher, herzlich willkommen bei: sourceserver.info. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
Benutzerinformationen überspringen
Meister
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein
Quellcode |
|
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 61 |
import es, random # # Konfiguration # def config(): # Moegliche Gruende: # round_draw # game_commencing # cts_win # terrorists_win # target_bombed # bomb_defused # target_saved # all_hostages_rescued # hostages_not_rescued # Gross- und Kleinschreibung ist egal # Soundpfad ohne sound/ # # Format: # addSound("<grund>", "<soundpfad>") addSound("round_draw", "you/are_all_loosers.mp3") # # Code -- nichts veraendern # def load(): global sounds, downloads sounds = {} downloads = [] config() performDownload() def es_map_start(event_var): performDownload() def performDownload(): for download in downloads: es.stringtable("downloadables", "sound/%s" % download) def addSound(reason, sound): if reason not in sound: sounds[reason] = [] sound = sound.replace("\", "/").replace("//", "/") sounds[reason].append(sound) downloads.append(sound) def round_end(event_var): reason = event_var["reason"].lower() if reason not in sounds: return es.cexec_all("play", random.choice(sounds[reason])) |
Quellcode |
|
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 61 |
import es, random # # Konfiguration # def config(): # Moegliche Gruende: # round_draw # game_commencing # cts_win # terrorists_win # target_bombed # bomb_defused # target_saved # all_hostages_rescued # hostages_not_rescued # Gross- und Kleinschreibung ist egal # Soundpfad ohne sound/ # # Format: # addSound("<grund>", "<soundpfad>") addSound("round_draw", "you/are_all_loosers.mp3") # # Code -- nichts veraendern # def load(): global sounds, downloads sounds = {} downloads = [] config() performDownload() def es_map_start(event_var): performDownload() def performDownload(): for download in downloads: es.stringtable("downloadables", "sound/%s" % download) def addSound(reason, sound): if reason not in sound: sounds[reason] = [] sound = sound.replace("\", "/").replace("//", "/").replace("/", "\") sounds[reason].append(sound) downloads.append(sound) def round_end(event_var): reason = event_var["reason"].lower() if reason not in sounds: return es.cexec_all("play", random.choice(sounds[reason])) |
Quellcode |
|
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 61 62 63 |
import es, random # # Konfiguration # def config(): # Moegliche Gruende: # round_draw # game_commencing # cts_win # terrorists_win # target_bombed # bomb_defused # target_saved # all_hostages_rescued # hostages_not_rescued # Gross- und Kleinschreibung ist egal # Soundpfad ohne sound/ # # Format: # addSound("<grund>", "<soundpfad>") addSound("round_draw", "you/are_all_loosers.mp3") # # Code -- nichts veraendern # def load(): global sounds, downloads sounds = {} downloads = [] config() performDownload() def es_map_start(event_var): performDownload() def performDownload(): for download in downloads: es.stringtable("downloadables", "sound/%s" % download) def addSound(reason, sound): if reason not in sound: sounds[reason] = [] es.msg(sound) sound = sound.replace("\", "/").replace("//", "/").replace("/", "\") es.msg(sound) sounds[reason].append(sound) downloads.append(sound) def round_end(event_var): reason = event_var["reason"].lower() if reason not in sounds: return es.cexec_all("play", random.choice(sounds[reason])) |
Quellcode |
|
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 61 62 |
import es, random, os.path # # Konfiguration # def config(): # Moegliche Gruende: # round_draw # game_commencing # cts_win # terrorists_win # target_bombed # bomb_defused # target_saved # all_hostages_rescued # hostages_not_rescued # Gross- und Kleinschreibung ist egal # Soundpfad ohne sound/ # # Format: # addSound("<grund>", "<soundpfad>") addSound("round_draw", "you/are_all_loosers.mp3") # # Code -- nichts veraendern # def load(): global sounds, downloads sounds = {} downloads = [] config() performDownload() def es_map_start(event_var): performDownload() def performDownload(): for download in downloads: es.stringtable("downloadables", "sound/%s" % download) def addSound(reason, sound): if reason not in sound: sounds[reason] = [] sound = sound.replace("\", "/").replace("//", "/") es.msg("%s: existiert%s" % ("%s/sound/%s" % (es.getString("eventscripts_gamedir"), sound), ("!" if os.path.isfile("%s/sound/%s" % (es.getString("eventscripts_gamedir"), sound)) else " nicht!"))) sounds[reason].append(sound) downloads.append(sound) def round_end(event_var): reason = event_var["reason"].lower() if reason not in sounds: return es.cexec_all("play", random.choice(sounds[reason])) |
Benutzerinformationen überspringen
Meister
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein
Zitat
Ich denke aber mal es liegt daran, dass du einen Listenserver aus CSS heraus startest. Hast es schon einmal mit einem Source Dedicated Server versucht (STEAM->Tools)?