GogoTfm

sc

Jun 8th, 2019
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.15 KB | None | 0 0
  1.  
  2. tfm.exec.disableAfkDeath(true)
  3. tfm.exec.disableAutoNewGame(true)
  4. tfm.exec.disableAutoScore(true)
  5. tfm.exec.disableAutoShaman(true)
  6. tfm.exec.disableAutoTimeLeft(true)
  7. tfm.exec.disablePhysicalConsumables(true)
  8. tfm.exec.setGameTime(0)
  9. tfm.exec.newGame([[<C><P /><Z><S><S i="1,20,16b2d619ac0.png" /><S L="799" H="24" X="405" Y="390" T="14" P="0,0,0.3,0.2,0,0,0,0"/><S c="2" L="115" H="401" X="33" N="" Y="204" T="14" P="0,0,0.3,0.2,0,0,0,0" /></S><D /><O /></Z></C>]])
  10.  
  11.  
  12. tfm.exec.setUIMapName("<font color='#00E2FF'></font>|<font color='#EB1D51'> admins: Mohnad22</font>|<font color='#E68D43'> funcorp:Jasser8</font>|<font color='#BABD2F'>modo: Nabil_pro_99 </font>")
  13.  
  14. admin = "Mohnad22#0000"
  15. funcorp = "Jasser8#0000"
  16. modo = "Nabil_pro_99#0000"
  17. mapcrew =""
  18. tfm.exec.setNameColor(admin,0xEB1D51)
  19. tfm.exec.setNameColor(funcorp,0xE68D43)
  20. tfm.exec.setNameColor(modo,0xBABD2F)
  21. tfm.exec.setNameColor(mapcrew,0x2E72CB)
  22.  
  23. function eventChatCommand(n,cmd)
  24.     if cmd=="exit" and n== admin then
  25.         system.exit()
  26.     elseif cmd=="tp" and n== admin then
  27.         system.bindMouse(n,true)
  28.     elseif cmd=="s" and n== funcorp then
  29.         tfm.exec.setShaman(n,true)
  30.     elseif cmd=="s" and n== admin then
  31.         tfm.exec.setShaman(n,true)
  32.     elseif cmd=="s" and n== modo then
  33.         tfm.exec.setShaman(n,true)
  34.     elseif cmd=="r" and n== admin then
  35.         tfm.exec.respawnPlayer(n,true)
  36.     elseif cmd=="r" and n== modo then
  37.         tfm.exec.respawnPlayer(n,true)
  38.     elseif cmd=="cmd" and n==admin then
  39.     ui.addPopup(1099,0,"<b><font size='20' color='#E68D43'>أوامر الفانكورب :</font>\n !s ---> التحول الى شامان\n<font size='20' color='#2E72CB'>أوامر الماب كرو :</font>\n لايوجد حاليا :( \n <font size='20' color='#BABD2F'>\n أوامر المشرفين :</font>\n !s---> ألتحول الى شامان \n !r العودة للعب من جديد \n !tp الأنتقال الى أي مكان\n</font><font size='15' color='#0EFF00'>\n المميزات :>\n نضام كل رتبة من الرتب يختلف عن الأخرى ! كل رتبة صنعت لتمييزها عن باقي الأعضاء الأخرين تفاديا للتخريب</b>",name,100,50,600,true)
  40.      elseif cmd=="cmd" and n==modo then
  41.     ui.addPopup(999,0,"<b><font size='20' color='#E68D43'>أوامر الفانكورب :</font>\n !s ---> التحول الى شامان\n<font size='20' color='#2E72CB'>أوامر الماب كرو :</font>\n لايوجد حاليا :( \n <font size='20' color='#BABD2F'>\n أوامر المشرفين :</font>\n !s---> ألتحول الى شامان \n !r العودة للعب من جديد \n !tp الأنتقال الى أي مكان\n</font><font size='15' color='#0EFF00'>\n المميزات :>\n نضام كل رتبة من الرتب يختلف عن الأخرى ! كل رتبة صنعت لتمييزها عن باقي الأعضاء الأخرين تفاديا للتخريب</b>",name,100,50,600,true)
  42.  elseif cmd=="cmd" and n==funcorp then
  43.     ui.addPopup(999,0,"<b><font size='20' color='#E68D43'>أوامر الفانكورب :</font>\n !s ---> التحول الى شامان\n<font size='20' color='#2E72CB'>أوامر الماب كرو :</font>\n لايوجد حاليا :( \n <font size='20' color='#BABD2F'>\n أوامر المشرفين :</font>\n !s---> ألتحول الى شامان \n !r العودة للعب من جديد \n !tp الأنتقال الى أي مكان\n</font><font size='15' color='#0EFF00'>\n المميزات :>\n نضام كل رتبة من الرتب يختلف عن الأخرى ! كل رتبة صنعت لتمييزها عن باقي الأعضاء الأخرين تفاديا للتخريب</b>",name,100,50,600,true)  
  44.  elseif cmd=="cmd" and n==mapcrew then
  45.     ui.addPopup(999,0,"<b><font size='20' color='#E68D43'>أوامر الفانكورب :</font>\n !s ---> التحول الى شامان\n<font size='20' color='#2E72CB'>أوامر الماب كرو :</font>\n لايوجد حاليا :( \n <font size='20' color='#BABD2F'>\n أوامر المشرفين :</font>\n !s---> ألتحول الى شامان \n !r العودة للعب من جديد \n !tp معطلة حاليا :(\n</font><font size='15' color='#0EFF00'>\n المميزات :>\n نضام كل رتبة من الرتب يختلف عن الأخرى ! كل رتبة صنعت لتمييزها عن باقي الأعضاء الأخرين تفاديا للتخريب </font><font color='#FF0000'>\n تنبيه ! :\n ايعاز /tp معطل حاليا :(</b>",name,100,50,600,true)
  46.    end
  47.  
  48. end
  49.  
  50.  
  51.  
  52. system.disableChatCommandDisplay("exit",true)
  53. system.disableChatCommandDisplay("r",true)
  54. system.disableChatCommandDisplay("s",true)
  55. system.disableChatCommandDisplay("cmd",true)
  56.  
  57. for all in pairs(tfm.get.room.playerList) do
  58. tfm.exec.bindKeyboard(admin, 32, true, true)
  59. end
  60. for name in pairs(tfm.get.room.playerList) do
  61.     system.bindKeyboard(admin, 32, true)
  62. end
  63.  
  64.  
  65.  
  66. for p in pairs(tfm.get.room.playerList) do
  67. tfm.exec.bindKeyboard(admin,32,true,true)
  68. end
  69. function eventKeyboard(p,key,down,x,y)
  70. if key==32 then
  71. if tfm.get.room.playerList[p].isFacingRight then
  72. tfm.exec.addShamanObject(24,x,y+20,0,20)
  73. else
  74. tfm.exec.addShamanObject(24,x,y+20,0,-20)
  75. end
  76. end
  77. end
Advertisement
Add Comment
Please, Sign In to add comment