Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----- ITT KAPJA MEG -----
- function munkaKezdes()
- if Randomh then
- randomA = math.random(#munkaMarkerek)
- table.insert(TaroltCPK,{randomA})
- kovetkezoLepes = true
- Randomh = false
- end
- if kovetkezoLepes then
- Random_utvonal = math.random(#munkaMarkerek)
- for index, value in ipairs (TaroltCPK) do
- Munkamarker[index] = createMarker(munkaMarkerek[Random_utvonal][1], munkaMarkerek[Random_utvonal][2], munkaMarkerek[Random_utvonal][3], "checkpoint", 2, 39, 174, 96, 0)
- MunkaBlip[index] = createBlip(munkaMarkerek[Random_utvonal][1], munkaMarkerek[Random_utvonal][2], munkaMarkerek[Random_utvonal][3], 44)
- Munkaped[index] = createPed(munkaMarkerek[Random_utvonal][5],munkaMarkerek[Random_utvonal][1], munkaMarkerek[Random_utvonal][2], munkaMarkerek[Random_utvonal][3])
- Munkaped[index]:setData("ped:name",munkaMarkerek[Random_utvonal][6])
- --setElementRotation()
- setPedRotation (Munkaped[index],munkaMarkerek[Random_utvonal][4])
- Munkamarker[index]:setData("Marker.ID", index)
- Munkamarker[index]:setData("Marker.Status", true)
- setElementData (gecismegrendelo, "megrendelonev",munkaMarkerek[Random_utvonal][6])
- end
- end
- end
- ---- ITT KELLENE NEKEM A TETVES NEVE ------
- function Fizetes (PizzaHomerseglet)
- if PizzaHomerseglet then
- local rand = math.random(1,#fizetesek)
- local fizetes = fizetesek[rand]
- local borravalo = math.random(2, 5)
- localPlayer:setData("char:money", localPlayer:getData("char:money") + fizetes + borravalo)
- outputChatBox("#7cc576[Pizzafutár]:#FFFFFF A rendelő kifizette a pizza árát. Fizetséged: #7cc576"..fizetes .. " + ".. borravalo.."#FFFFFF Ft",255,255,255,true)
- setTimer ( function()
- atvette = {
- {"Köszönöm szépen!"},
- {"Köszi!"},
- {"Kösz tesa"},
- {"Köszönöm szépen, viszlát!"},
- {"Na végre."},
- }
- atveszi = math.random(#atvette)
- outputChatBox("#FFFFFF".. tostring(megrendeloke) .."mondja: #e7d9b0".. atvette[atveszi][1] .."",255, 255, 255, true) --Franklyn Jhonson
- --outputChatBox("#ffffffKócos Cina mondja:#e7d9b0 megkurlak te tetü", player, 255, 255, 255, true)
- end, 200, 1 )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement