# Eventscripts Imports import es # GunGame Imports from gungame51.core.addons.shortcuts import AddonInfo from gungame51.core.players import Player # ============================================================================= # >> ADDON REGISTRATION/INFORMATION # ============================================================================= info = AddonInfo() info.name = 'gg_knife_elite' info.title = 'GG Knife Elite' info.author = 'GG Dev Team' info.version = "5.1.%s" % "$Rev: 549 $".split('$Rev: ')[1].split()[0] info.requires = ['gg_dead_strip'] info.conflicts = ['gg_turbo'] # ============================================================================= # >> GAME EVENTS # ============================================================================= def gg_levelup(event_var): # Get userid attacker = int(event_var['attacker']) # Switch the player to knife es.server.queuecmd('es_xsexec %s "use weapon_knife"' % attacker) # Strip player of all weapons but a knife Player(attacker).strip(True)
# Addons from gungame51.core.addons.shortcuts import AddonInfo # Script Imports from modules.dictionary import players # ============================================================================= # >> ADDON REGISTRATION/INFORMATION # ============================================================================= info = AddonInfo() info.name = 'gg_deathmatch' info.title = 'GG Deathmatch' info.author = 'GG Dev Team' info.version = get_version('gg_deathmatch') info.requires = ['gg_dead_strip', 'gg_dissolver'] info.conflicts = ['gg_elimination', 'gg_teamplay', 'gg_teamwork'] info.translations = ['gg_deathmatch'] # ============================================================================= # >> GLOBAL VARIABLES # ============================================================================= # ServerVar instances mp_freezetime = es.ServerVar('mp_freezetime') mp_roundtime = es.ServerVar('mp_roundtime') # ============================================================================= # >> LOAD & UNLOAD # =============================================================================