Eshka

Untitled

Dec 19th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.88 KB | None | 0 0
  1. -- A construção
  2. -- Créditos:Brenower
  3. -- Tables
  4. data={""}
  5. win=0;
  6. shamans={};
  7. ratos=0;
  8. mapas={"1"};
  9. -- Inicio do script
  10. tfm.exec.disableAutoScore(true)
  11. tfm.exec.disableAutoShaman(true)
  12. tfm.exec.disableAutoNewGame(true)
  13. tfm.exec.disableAutoTimeLeft(true)
  14.  
  15. for player,name in pairs(tfm.get.room.playerList) do
  16. newData = {
  17. ["pontos"]=0;
  18. ["queijos"]=0;
  19. ["primero"]=0;
  20. ["sucess"]=0;
  21. ["ban"]=false;
  22. ["title"]="Mini construtor";
  23. ["titlef"]="Rato novato";
  24. ["titleq"]="Queijosburguer";
  25. ["queijos"]=0;
  26. ["primeiro"]=0;
  27. ["voteban"]=0;
  28. };
  29. data[player] = newData
  30. end
  31.  
  32. -- loop
  33. function eventLoop(ct,rt)
  34. if rt <= 0 then
  35. tfm.exec.newGame(mapas[math.random(#mapas)])
  36. end
  37. end
  38. -- Comandos
  39. function eventChatCommand(player,cm)
  40. if (cm:sub(0,6) == [[pontos]]) then
  41. for str,num in pairs(tfm.get.room.playerList) do
  42. if (str == cm:sub(8)) then
  43. print(data[str].pontos)
  44. end
  45. end
  46. end
  47. end
Advertisement
Add Comment
Please, Sign In to add comment