Guest User

Untitled

a guest
Jan 16th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1.  
  2.  
  3. function name (thePlayer)
  4.  outputChatBox("Text", thePlayer, 255, 255)
  5. end
  6. addCommandHandler("lolol", name)
  7.  
  8. local textmarker = createMarker(x, y, z, "cylinder", 1.5)
  9.  
  10. function lol (thePlayer)
  11.  outputChatBox("Du bist in den Marker gegangen", thePlayer, 0, 255, 0)
  12. end
  13. addEventHandler("onMarkerHit", textmarker, lol)
  14.  
  15. addEventHandler("onMarkerHit" textmarker,
  16.    function (thePlayer)
  17.     outputChatBox("Text Text", thePlayer, 255, 255, 255)
  18.    end
  19. )
  20.  
  21. function (thePlayer)
  22. local texte = math.random(1, 4)
  23.  if texte == 1 then
  24.   outputChatBox("1", thePlayer, 0, 255, 0)
  25.  end
  26.  if texte == 2 then
  27.   outputChatBox("2", thePlayer, 255, 255, 0)
  28.  end
  29.  if texte == 3 then
  30.   outputChatBox("3", thePlayer, 255, 255, 0)
  31.  end
  32.  if texte == 4 then
  33.   outputChatBox("4", thePlayer, 255, 255, 0)
  34.  end
  35. end
  36. addCommandHandler("lol", texte)
  37.  
  38. textTabelle {}
  39. textTabelle[1] = "1"
  40. textTabelle[2] = "2"
  41. textTabelle[3] = "3"
  42.  
  43. function test (thePlayer)
  44.  local text = math.random(1, 3)
  45.   outputChatBox(testTabelle[text], thePlayer, 255, 255, 255)
  46. end
  47. addCommandHandler("tttttt", test)
Add Comment
Please, Sign In to add comment