Advertisement
Guest User

fghgfh

a guest
Feb 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. tfm.exec.disableAutoShaman(true)
  2. t=0
  3. Nq=0
  4. sec=30
  5. s=sec
  6. tfm.exec.newGame(7060934)
  7.  
  8. playerQ="Catmusk" --اللاعب المختبر
  9. tfm.exec.movePlayer(playerQ,400, 100)
  10. canPlay=true
  11. questions={
  12. {q="من هو رئيس المجتمع العربي في أول إنشائه ؟",a=""},
  13. {q="يتم إحتساب عدد البوتكاب عن وجود عدد معين من اللاعبين فما هو ؟",a=""},
  14. {q="ما المدة اللتي يتم فيها حظر الهاك عند إستخدامه لأول مرة ؟",a=""},
  15. {q="ما أسم معرض الألعاب الذي إستضاف ترانسفورمايس مؤخراً ؟",a=""},
  16. {q="؟ RunforCheese من هو مبرمج",a=""},
  17. {q="ما وظيفة الإيعاز /ping",a=""},
  18. {q="ما الأمر الذي كان مصمماً لطرد اللاعبين من القبيلة في السابق",a=""},
  19. {q="ما أسم اللاعب الذي يملك التسجيل رقم 1",a=""},
  20. {q="ما وظيفة الإيعاز /tk في الماضي",a=""}
  21.  
  22. }
  23.  
  24. maxQ=#questions
  25.  
  26. function newQuestion()
  27. if maxQ ~= Nq then
  28. Nq=Nq+1
  29. ui.addPopup(1,2,"",playerQ,100,205,600,true)
  30. ui.addTextArea(1,"<br><p align='center'><font size='13'>"..questions[Nq].q.."", NIL,100,10,600,38,1,1,0.8,true)
  31. s=sec
  32. else
  33. canPlay=false
  34. ui.removeTextArea(2,nil)
  35. ui.addTextArea(1,"<br><p align='center'><font size='13'>انتهى الإختبار", NIL,100,10,600,38,1,1,0.8,true)
  36. end
  37. end
  38. newQuestion()
  39.  
  40. function eventLoop(o,p)
  41. if canPlay then
  42. t=t+1
  43. if t== 2 then
  44. s=s-1
  45. ui.addTextArea(2,"<br><p align='center'><font size='20'><j>"..s.."", NIL,372,70,60,60,1,1,0.6,true)
  46. if s == 0 then
  47. newQuestion()
  48. end
  49. t=0
  50. end
  51. end
  52. end
  53.  
  54.  
  55. function eventPopupAnswer(id,n,answer)
  56. if id == 1 then
  57. if answer == "" then
  58. answer = "<r>*لم يتم الإجابة*"
  59. end
  60. questions[Nq].a=answer
  61. newQuestion()
  62. end
  63. end
  64.  
  65. function eventChatCommand(n,cmd)
  66. if cmd == "score" then
  67. print(playerQ.." : اللاعب")
  68. i=1
  69. while i <= maxQ do
  70. print(i..": السؤال")
  71. print("<vp>"..questions[i].a)
  72. i=i+1
  73. end
  74. end
  75. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement