# -*- coding:Utf-8 -*- # import es, playerlib info = es.AddonInfo() info.name = "Radio Messages Editor" info.version = "1337" info.author = "Devilsnake88" radio = ['coverme', 'enemydown', 'enemyspot', 'fallback', 'followme', 'getinpos', 'getout', 'go', 'holdpos', 'inposition', 'needbackup', 'negative', 'regroup', 'report', 'reportingin', 'roger', 'sectorclear', 'sticktog', 'stormfront', 'takepoint', 'takingfire'] def load(): es.addons.registerClientCommandFilter(radiomessageeditor) def unload(): es.addons.unregisterClientCommandFilter(radiomessageeditor) def radiomessageeditor(userid, args): player = playerlib.getPlayer(userid) Playername = player.attributes['name'] Playerteam = es.getplayerteam(userid) if args[0].lower() in radio: ### If Player is on Counter-Terrorists ### if Playerteam == 3: if args == ['go']: es.msg('#multi', "\x079acdff %s \1(RADIO): Go Go Go, Bitches!" % Playername) es.cexec_all("play", "radio/com_go.wav") return False elif args == ['coverme']: es.msg('#multi', "\x079acdff %s \1(RADIO): Fuck me!" % Playername) es.cexec_all("play", "radio/ct_coverme.wav") return False elif args == ['enemydown']: es.msg('#multi', "\x079acdff %s \1(RADIO): Noob down!" % Playername) es.cexec_all("play", "radio/enemydown.wav") return False elif args == ['enemyspot']: es.msg('#multi', "\x079acdff %s \1(RADIO): Noob spotted!" % Playername) es.cexec_all("play", "radio/ct_enemys.wav") return False elif args == ['fallback']: es.msg('#multi', "\x079acdff %s \1(RADIO): Don't go over there!" % Playername) es.cexec_all("play", "radio/fallback.wav") return False elif args == ['followme']: es.msg('#multi', "\x079acdff %s \1(RADIO): Just follow me!" % Playername) es.cexec_all("play", "radio/followme.wav") return False elif args == ['getinpos']: es.msg('#multi', "\x079acdff %s \1(RADIO): Stay there and wait for me!" % Playername) es.cexec_all("play", "radio/com_getinpos.wav") return False elif args == ['getout']: es.msg('#multi', "\x079acdff %s \1(RADIO): Run Forest, RUUUUUUUUN!" % Playername) es.cexec_all("play", "radio/blow.wav") return False elif args == ['holdpos']: es.msg('#multi', "\x079acdff %s \1(RADIO): Stay here!" % Playername) es.cexec_all("play", "radio/position.wav") return False elif args == ['inposition']: es.msg('#multi', "\x079acdff %s \1(RADIO): I'm ready!" % Playername) es.cexec_all("play", "radio/ct_inpos.wav") return False elif args == ['needbackup']: es.msg('#multi', "\x079acdff %s \1(RADIO): Help me please!" % Playername) es.cexec_all("play", "radio/ct_backup.wav") return False elif args == ['negative']: es.msg('#multi', "\x079acdff %s \1(RADIO): Eh.. No." % Playername) es.cexec_all("play", "radio/negative.wav") return False elif args == ['regroup']: es.msg('#multi', "\x079acdff %s \1(RADIO): Where are you?" % Playername) es.cexec_all("play", "radio/regroup.wav") return False elif args == ['report']: es.msg('#multi', "\x079acdff %s \1(RADIO): Where is my mate?" % Playername) es.cexec_all("play", "radio/com_reportin.wav") return False elif args == ['reportingin']: es.msg('#multi', "\x079acdff %s \1(RADIO): Ready, lets go!" % Playername) es.cexec_all("play", "radio/ct_reportingin.wav") return False elif args == ['roger']: es.msg('#multi', "\x079acdff %s \1(RADIO): Okay." % Playername) es.cexec_all("play", "radio/roger.wav") return False elif args == ['sectorclear']: es.msg('#multi', "\x079acdff %s \1(RADIO): Level done!" % Playername) es.cexec_all("play", "radio/clear.wav") return False elif args == ['sticktog']: es.msg('#multi', "\x079acdff %s \1(RADIO): I want Gangbang!" % Playername) es.cexec_all("play", "radio/sticktog.wav") return False elif args == ['stormfront']: es.msg('#multi', "\x079acdff %s \1(RADIO): Faster dude, faster!" % Playername) es.cexec_all("play", "radio/stormfront.wav") return False elif args == ['takepoint']: es.msg('#multi', "\x079acdff %s \1(RADIO): You go first!" % Playername) es.cexec_all("play", "radio/takepoint.wav") return False elif args == ['takingfire']: es.msg('#multi', "\x079acdff %s \1(RADIO): Need HELP! They shooting me!" % Playername) es.cexec_all("play", "radio/takingfire.wav") return False ### If Player is on Terrorists ### elif Playerteam == 2: if args == ['go']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Go Go Go, Bitches!" % Playername) es.cexec_all("play", "radio/com_go.wav") return False elif args == ['coverme']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Fuck me!" % Playername) es.cexec_all("play", "radio/ct_coverme.wav") return False elif args == ['enemydown']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Noob down!" % Playername) es.cexec_all("play", "radio/enemydown.wav") return False elif args == ['enemyspot']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Noob spotted!" % Playername) es.cexec_all("play", "radio/ct_enemys.wav") return False elif args == ['fallback']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Don't go over there!" % Playername) es.cexec_all("play", "radio/fallback.wav") return False elif args == ['followme']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Just follow me!" % Playername) es.cexec_all("play", "radio/followme.wav") return False elif args == ['getinpos']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Stay there and wait for me!" % Playername) es.cexec_all("play", "radio/com_getinpos.wav") return False elif args == ['getout']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Run Forest, RUUUUUUUUN!" % Playername) es.cexec_all("play", "radio/blow.wav") return False elif args == ['holdpos']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Stay here!" % Playername) es.cexec_all("play", "radio/position.wav") return False elif args == ['inposition']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): I'm ready!" % Playername) es.cexec_all("play", "radio/ct_inpos.wav") return False elif args == ['needbackup']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Help me please!" % Playername) es.cexec_all("play", "radio/ct_backup.wav") return False elif args == ['negative']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Eh.. No." % Playername) es.cexec_all("play", "radio/negative.wav") return False elif args == ['regroup']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Where are you?" % Playername) es.cexec_all("play", "radio/regroup.wav") return False elif args == ['report']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Where is my mate?" % Playername) es.cexec_all("play", "radio/com_reportin.wav") return False elif args == ['reportingin']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Ready, lets go!" % Playername) es.cexec_all("play", "radio/ct_reportingin.wav") return False elif args == ['roger']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Okay." % Playername) es.cexec_all("play", "radio/roger.wav") return False elif args == ['sectorclear']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Level done!" % Playername) es.cexec_all("play", "radio/clear.wav") return False elif args == ['sticktog']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): I want Gangbang!" % Playername) es.cexec_all("play", "radio/sticktog.wav") return False elif args == ['stormfront']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Faster dude, faster!" % Playername) es.cexec_all("play", "radio/stormfront.wav") return False elif args == ['takepoint']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): You go first!" % Playername) es.cexec_all("play", "radio/takepoint.wav") return False elif args == ['takingfire']: es.msg('#multi', "\x07ff3d3d %s \1(RADIO): Need HELP! They shooting me!" % Playername) es.cexec_all("play", "radio/takingfire.wav") return False return True