
""" ____  ___  ___ ___  _____   ____  ___  ____
    \  \\/  /// ///   \\\    \\ \  \\/  //|    \\
     \  V  /// //__ _  \\\ D ||  \  V  // | ___//
      \___///_____// \__\\\__//   \___//  |_||
"""

###################################################
#                                                 #
#   File: semimr.py                               #
#   Name: Semi master race                        #
#   Lang: Python                                  #
#    API: pySpades/pySnip                         #
#   Desc: Semimr.py is a pySpades/pySnip script,  #
#         designed to "disable" all weapons       #
#         apart from the rifle.                   #
#         It was originally designed for an Ace   #
#         of Spades event.                        #
#                                                 #
###################################################

def apply_script(protocol,connection,config):
	class semimrConnection(connection):
		def spawn(self): self.weapon=0; return connection.spawn(self)
		def on_weapon_set(self,weapon):
			if weapon != 0: return False
			return connection.on_weapon_set(self,weapon)
	return protocol, semimrConnection