Brenower

Fly com sp

Feb 13th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.19 KB | None | 0 0
  1. time=0;
  2. v=0;
  3. sps=0;
  4. timee=os.time();
  5.  
  6. tfm.exec.disableAutoNewGame(true)
  7. tfm.exec.disableAutoTimeLeft(true)
  8. tfm.exec.disableAllShamanSkills(true)
  9.  
  10.         tfm.exec.newGame('<C><P F="'..math.random(0,10)..'" /><Z><S><S H="50" P="0,0,0.3,0.2,0,0,0,0" L="120" X="60" Y="400" T="6" v="5000" /></S><D><DS Y="353" X="86" /><DC Y="357" X="51" /></D><O /></Z></C>')
  11.  
  12. function eventLoop(ct,rt)
  13.     if timee < os.time()-3000 then
  14.         v=v+0.5;
  15.         if v == 1 then
  16.             v=0;
  17.             time=time+1;
  18.             tfm.exec.setGameTime(time)
  19.         end
  20.     end
  21. end
  22.  
  23. function eventNewGame()
  24.     ui.addTextArea(0,"<font size='13'>Tempo passado : <V>"..time.."   <BL>|   <N>Sps usados : <V>"..sps,nil,10,20,nil,nil,1,1,0.6,true)
  25.     time=0;
  26.     sps=0;
  27.     v=0;
  28.     timee=os.time();
  29. end
  30.  
  31. function eventPlayerDied(p)
  32.     if tfm.get.room.playerList[p].isShaman then
  33.         tfm.exec.newGame('<C><P F="'..math.random(0,10)..'" /><Z><S><S H="50" P="0,0,0.3,0.2,0,0,0,0" L="120" X="60" Y="400" T="6" v="5000" /></S><D><DS Y="353" X="86" /><DC Y="357" X="51" /></D><O /></Z></C>')
  34.     end
  35. end
  36.  
  37. function eventSummoningStart(playerName,id,x,y,ang,xs,ys,other)
  38.     if timee < os.time()-3000 then
  39.     if id == 24 then
  40.         sps=sps+1;
  41.     else
  42.         tfm.exec.killPlayer(playerName)
  43.     end
  44. end
  45. end
Advertisement
Add Comment
Please, Sign In to add comment