import es import gamethread #------------------------------Settings-------------------------------- #Path to the overlays (without cstrike/materials) CTPath = 'overlays/yourctoverlay.vtf' TPath = 'overlays/yourtoverlay.vtf' #How long should be the Overlay shown? Time = 4 #----------------------------------------------------------------------- def es_map_start(ev): download() def round_end(ev): if ev['winner'] == '2': es.cexec_all('r_screenoverlay', TPath) gamethread.delayed(Time, stop, ()) elif ev['winner'] == '3': es.cexec_all('r_screenoverlay', CTPath) gamethread.delayed(Time, stop, ()) def stop(): es.cexec_all('r_screenoverlay', 'null') def download(): es.stringtable('downloadables', 'materials/%s' %(CTPath)) es.stringtable('downloadables', 'materials/%s' %(CTPath.replace('vtf', 'vmt'))) es.stringtable('downloadables', 'materials/%s' %(TPath)) es.stringtable('downloadables', 'materials/%s' %(TPath.replace('vtf', 'vmt')))