Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. ----- ITT KAPJA MEG -----
  2.  
  3. function munkaKezdes()
  4. if Randomh then
  5. randomA = math.random(#munkaMarkerek)
  6. table.insert(TaroltCPK,{randomA})
  7. kovetkezoLepes = true
  8. Randomh = false
  9. end
  10. if kovetkezoLepes then
  11. Random_utvonal = math.random(#munkaMarkerek)
  12. for index, value in ipairs (TaroltCPK) do
  13. Munkamarker[index] = createMarker(munkaMarkerek[Random_utvonal][1], munkaMarkerek[Random_utvonal][2], munkaMarkerek[Random_utvonal][3], "checkpoint", 2, 39, 174, 96, 0)
  14. MunkaBlip[index] = createBlip(munkaMarkerek[Random_utvonal][1], munkaMarkerek[Random_utvonal][2], munkaMarkerek[Random_utvonal][3], 44)
  15. Munkaped[index] = createPed(munkaMarkerek[Random_utvonal][5],munkaMarkerek[Random_utvonal][1], munkaMarkerek[Random_utvonal][2], munkaMarkerek[Random_utvonal][3])
  16. Munkaped[index]:setData("ped:name",munkaMarkerek[Random_utvonal][6])
  17. --setElementRotation()
  18. setPedRotation (Munkaped[index],munkaMarkerek[Random_utvonal][4])
  19. Munkamarker[index]:setData("Marker.ID", index)
  20. Munkamarker[index]:setData("Marker.Status", true)
  21.  
  22. setElementData (gecismegrendelo, "megrendelonev",munkaMarkerek[Random_utvonal][6])
  23. end
  24. end
  25. end
  26.  
  27.  
  28. ---- ITT KELLENE NEKEM A TETVES NEVE ------
  29.  
  30.  
  31. function Fizetes (PizzaHomerseglet)
  32. if PizzaHomerseglet then
  33. local rand = math.random(1,#fizetesek)
  34. local fizetes = fizetesek[rand]
  35. local borravalo = math.random(2, 5)
  36. localPlayer:setData("char:money", localPlayer:getData("char:money") + fizetes + borravalo)
  37. outputChatBox("#7cc576[Pizzafutár]:#FFFFFF A rendelő kifizette a pizza árát. Fizetséged: #7cc576"..fizetes .. " + ".. borravalo.."#FFFFFF Ft",255,255,255,true)
  38. setTimer ( function()
  39. atvette = {
  40. {"Köszönöm szépen!"},
  41. {"Köszi!"},
  42. {"Kösz tesa"},
  43. {"Köszönöm szépen, viszlát!"},
  44. {"Na végre."},
  45. }
  46.  
  47. atveszi = math.random(#atvette)
  48. outputChatBox("#FFFFFF".. tostring(megrendeloke) .."mondja: #e7d9b0".. atvette[atveszi][1] .."",255, 255, 255, true) --Franklyn Jhonson
  49. --outputChatBox("#ffffffKócos Cina mondja:#e7d9b0 megkurlak te tetü", player, 255, 255, 255, true)
  50. end, 200, 1 )
  51.  
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement