def load(): es.set("simple_adverts", info.version) es.makepublic("simple_adverts") gamethread.delayedname(advert.delay, "advertDelay", advert.endDelay) cmdlib.registerServerCommand("dump_colors", advert.dumpColors, "") es.msg( "#multi", "\x07FF8D00[\x0703B0FFSimple Adverts\x07FF8D00] \x0703B0FF%s \x07FF8D00successfully loaded!" % info.version, )
def load(): es.set('simple_adverts', info.version) es.makepublic('simple_adverts') gamethread.delayedname(advert.delay, 'advertDelay', advert.endDelay) cmdlib.registerServerCommand('dump_colors', advert.dumpColors, '') es.msg( '#multi', '\x07FF8D00[\x0703B0FFSimple Adverts\x07FF8D00] \x0703B0FF%s \x07FF8D00successfully loaded!' % info.version)
def load(): global checksites global mapname es.set('bombsite_limiter_ver', '1.0.4') es.makepublic('bombsite_limiter_ver') es.msg('#multi', '#green[#lightgreenBombsite#green-#lightgreenLimiter#lightgreen]#default Loaded...') for map in maplist: mapsites[map] = bombsites(map, maplist[map]) mapname = es.getString('eventscripts_currentmap') try: for userid in es.getUseridList(): siteCheck() if len(bombsitesNum) >= 1: gamethread.delayed(0.5, mapsites[mapname].announce, (userid)) else: checksites = 1 except KeyError: mapsites[mapname] = bombsites(mapname, 'A') for userid in es.getUseridList(): gamethread.delayed(0.5, mapsites[mapname].announce, (userid))
def load(): global checksites global mapname es.set('bombsite_limiter_ver', '1.0.4') es.makepublic('bombsite_limiter_ver') es.msg( '#multi', '#green[#lightgreenBombsite#green-#lightgreenLimiter#lightgreen]#default Loaded...' ) for map in maplist: mapsites[map] = bombsites(map, maplist[map]) mapname = es.getString('eventscripts_currentmap') try: for userid in es.getUseridList(): siteCheck() if len(bombsitesNum) >= 1: gamethread.delayed(0.5, mapsites[mapname].announce, (userid)) else: checksites = 1 except KeyError: mapsites[mapname] = bombsites(mapname, 'A') for userid in es.getUseridList(): gamethread.delayed(0.5, mapsites[mapname].announce, (userid))
def makepublic(argv): es.makepublic(argv[0])
import gamethread import datetime import time from configobj import ConfigObj #plugin information info = es.AddonInfo() info.name = "GlobalBan" info.version = "3.4.1 r138" info.author = "Soynuts" info.url = "http://www.unbuinc.net" info.description = "Bans are stored in a mySQL database on a webserver" info.basename = "GlobalBan" es.set("GlobalBan", info.version) es.makepublic("GlobalBan") # Default config values serverId = 1 websiteAddy = "http://yourdomain.com/banned/" banAppealMessage = "Banned. Appeal at yourdomain.com" hashCode = "secretHashCode" teachAdmins = 1 clanName = "Your Clan Name or Community" allowAdminBanning = 1 wgetPath = "wget" pluginMani = 0 pluginSourceMod = 0 es.set("GlobalBan_Web", websiteAddy) es.makepublic("GlobalBan_Web")
import spe # ============================================================================= # >> ADDON INFORMATION # ============================================================================= info = es.AddonInfo() info.name = 'SPE Effects' info.version = '1.0.10' info.author = 'Ayuto' info.url = 'http://addons.eventscripts.com/addons/user/53757' info.basename = 'spe_effects' info.description = 'Provides many new effects by using SPE' es.set('spe_effects_version', info.version) es.makepublic('spe_effects_version') # ============================================================================= # >> GLOBAL VARIABLES & INITIALIZATION # ============================================================================= MAX_ENTITIES = 32 DATAPATH = path(__file__).parent.joinpath('data') EFFECTS = ConfigObj(DATAPATH.joinpath('effects.ini')) POINTERS = ConfigObj(DATAPATH.joinpath('pointers.ini')) if spe.platform == 'nt': sig, pos = POINTERS['g_TESystem']['nt'] g_TESystem = spe.getPointer(sig, int(pos)) else:
# > Custom Colors for color in colors: r,g,b = tuple(colors[color]) r = int(r) g = int(g) b = int(b) message = message.replace(color, formatColor(r,g,b)) return message # ============================================================================= # >> Tell-Function # ============================================================================= def tell(userid, message): if not es.getuserid(userid): return usermsg.saytext2(userid, 0, '\x01'+format(message)) # ============================================================================= # >> Message-Function # ============================================================================= def msg(message): usermsg.saytext2('#all', 0, '\x01'+format(message)) # ============================================================================= # >> Public Variable # ============================================================================= es.set('esc_version', version) es.makepublic('esc_version')