Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 21st, 2010 | Syntax: Python | Size: 0.36 KB | Hits: 70 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. import es
  2.  
  3. soundDir = 'YourRepertory/'
  4. soundFile = 'YourSoundFile'
  5. EndMap = False
  6.  
  7. def es_map_start():
  8.         es.stringtable('downloadables', 'sound/' + soundDir + soundTitle)
  9.         SecondsBeforeSong = es.ServerVar('mp_timelimit') * 60
  10.         es.delayed(SecondsBeForeSong,es.set("EndMap = True"))
  11.        
  12. def round_end():
  13.         if EndMap:
  14.                 es.cexec_all('play' + soundDir + soundTitle)