Advertisement
Guest User

2010

a guest
Apr 22nd, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. question=true
  2.    
  3. eventNewGame=function()
  4.     question=true
  5. end
  6.  
  7. eventPlayerWon=function(n)
  8.     if question then
  9.         ui.addTextArea(0, "<p align='center'>¿Cuando se creo tfm?", n, 319, 340, 161, 22, 0x324650, 0x000000, 1, false)
  10.         ui.addTextArea(1, "<a href='event:correct'>2010", n, 336, 373, 58, 20, 0x324650, 0x000000, 1, true)
  11.         ui.addTextArea(2, "<a href='event:wrong'>2012", n, 405, 373, 58, 20, 0x324650, 0x000000, 1, true)
  12.         question=false
  13.     end
  14.  
  15. end
  16.  
  17.  
  18. eventTextAreaCallback=function(id,n,cb)
  19.     if cb=="correct" then
  20.         tfm.exec.setPlayerScore(n,16,true)
  21.     end
  22.     for i=0,2 do
  23.         ui.removeTextArea(i)
  24.     end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement