Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pizzaboy
1. PizzaBoy praca
Witam ot?? mam prace pizza boya, rozpoczynam, lecz nie ma markera do za?adowania
db3
https://imgur.com/a/eA0jLeB
kod
c.lua


[lua]--[[
Autor: sayo
]]

local pkt = {
{-2545.98, -203.16, 14.65},
{-2795.59, 139.16, 7.20},
{-2415.08, 332.47, 34.98},
{-2723.87, -314.69, 7.19},
{-2759.96, 556.03, 14.55},
{-2861.80, 813.36, 38.82},
{-2714.26, 127.89, 4.34},
{-2230.01, 250.83, 35.32},

local marker = false
local blip = false

function createBlips()
local rnd = math.random(1, #pkt)
marker = createMarker(pkt[rnd][1], pkt[rnd][2], pkt[rnd][3]-0.99, "cylinder", 1.1, 255,80,0)
blip = createBlipAttachedTo(marker, 12)
end

function createBlips1()
marker2 = createMarker(-2663.61, 238.24, 4.34, "cylinder", 1.2)
blip2 = createBlipAttachedTo(marker2, 12)
end

function destroyBlips()
if marker and isElement(marker) then
destroyElement(marker)
end
if blip and isElement(blip) then
destroyElement(blip)
end
if blip2 and isElement(blip2) then
destroyElement(blip2)
end
if marker2 and isElement(marker2) then
destroyElement(marker2)
end
end



addEventHandler("onClientMarkerHit", resourceRoot, function(hit)
if hit ~= localPlayer then return end
if source ~= marker2 then return end
local veh = getPedOccupiedVehicle(hit)
if not veh then return end
fadeCamera(false)
exports['notyfikacje']:showBox("info","Trwa za?adunek pizzy.")
setElementFrozen(veh,true)
showCur...
2. [SKRYPT] PizzaBoy
PAR? S??W:
Witajcie. Oto kolejny skrypt mojego autorstwa.

O SKRYPCIE:
Skrypt daje nam mo?liwo?? rozwo?enia pizzy na naszym serwerze.

DODATKOWE INFORMACJE:
Zamie?ci?em .AMX oraz .PWN. W nim wszystko jest opisane co do czego s?u?y. Je?li znajdziecie jaki? b??d powiadomcie mnie w odpowiedzi do tego w?tku.

KOMENDY:
Ten skrypt nie posiada komend. Uruchamia si? go przyciskiem "2" na klawiaturze.

DOWNLOAD:
Ukryta wiadomość / Hidden message(aby ją zobaczyć musisz postawić użytkownikowi)
Wiadomość została ukryta, aby ją przeczytać należy się zalogować.
3. Pizzaboy
[lua]local rozpocznij = createMarker(2332.19,75.03,25.62,"cylinder",2,255,255,255,255)
setElementData(rozpocznij,"marker_opis","Praca dorywcza - Pizza boy")
createBlipAttachedTo(rozpocznij,34,2,255,0,0,255,0,200)

local miejsca = {
{2330.5944824219, 120.29937744141, 27.01068687439},
{2358.1867675781, 121.883934021, 27.165067672729},
{2210.818359375, 113.02882385254, 26.974361419678},
{2207.6577148438, -39.997257232666, 27.091478347778},
{2205.3588867188, -66.033531188965, 27.147180557251},
{2203.3984375, -80.232086181641, 27.04807472229},
{2248.1027832031, -112.27702331543, 26.863903045654},
{2292.3383789063, -113.05267333984, 26.849445343018},
{2359.71484375, -47.765110015869, 26.996976852417},
{2379.6628417969, -10.432369232178, 27.242069244385},
}

addCommandHandler("pizzaoff",
function (plr)
setElementData(plr,"pizzaBoy",false)
end
)

addEventHandler("onMarkerHit",resourceRoot,
function (plr)
if isElementWithinMarker(plr,rozpocznij) then
if not isPlayerInVehicle(plr) then
if not getElementData(plr,"pizzaBoy") then
outputChatBox("Rozpocz??e? prac?! Dowie? pizze do wyznaczonych miejsc!",plr)
outputChatBox("Posiadane pizze: 10",plr,255,0,0)
setElementData(plr,"pizzaBoy",true)
local pizza = createVehicle(448,2334.99,71.25,26.08,360,0,270)
warpPedIntoVehicle(plr,pizza)
toggleControl(plr,"...
4. Praca dorywcza - pizzaboy
Witam, m?cz? si? takim kodem:

[code]--// praca dorywcza

--//Tables and other stuff
tableLocationsX = {}
tableLocationsY = {}
tableLocationsZ = {}

tableMoney = {}
locationCount = 3

--//Location 1
tableLocationsX[1] = 1980.99841
tableLocationsY[1] = -1682.89551
tableLocationsZ[1] = 17.05380

tableMoney[1] = 16

--//Location 2
tableLocationsX[2] = 2067.69800
tableLocationsY[2] = -1629.03101
tableLocationsZ[2] = 14.20663

tableMoney[2] = 19

--//Location3
tableLocationsX[3] = 2065.10449
tableLocationsY[3] = -1703.51208
tableLocationsZ[3] = 14.14844

tableMoney[3] = 25

function startScript ()
--Marker
marker = createMarker (2097.91406, -1820.95154, 12.38281, "cylinder", 2.0, 255, 0, 0)
addEventHandler ("onMarkerHit", marker, startMission)
--Objects and Ped
ped = createPed (302, 2776.7, -2428.1, 13.6)
tableObj = createObject (2205, 2775.9, -2426.8, 12.6)
chairObj = createObject (2309, 2776.7, -2427.4, 12.6)
addEventHandler ("onPedWasted", getRootElement(), respawnPed)
--Blip
startBlip = createBlip (2097.91406, -1820.95154, 12.38281, 52)
end

function startMission (hitElement)
if getElementType (hitElement) == "player" then
--Check team
-- local team = getPlayerTeam (hitElement)
-- if getTeamName (team) ~= "Workers" then
-- local teamName = getTeamName (team)
-- outputChatBox ("#ffaa00// #ffffffOnly workers can drive trucks! Press F2 to change the te...
5. PizzaBoy praca randomowe pozycje
[lua]local districtsPizza = { ---- kordy dostarczania graczy
{-291.1318359375, 1163.7275390625, 19.696998596191},
{-335.0615234375, 1171.697265625, 19.901586532593},
{-320.7666015625, 1163.1123046875, 20.2421875},
{-364.9287109375, 1165.5341796875, 19.7421875},
{-367.416015625, 1145.8359375, 20.235286712646},
{-359.54296875, 1129.7119140625, 19.679533004761},
{-369.2392578125, 1119.2783203125, 20.230415344238},
{-361.92578125, 1104.31640625, 19.749286651611},
{-331.36328125, 1115.37890625, 20.2421875},
{-322.1962890625, 1130.2138671875, 19.83712387085},
{-289.51171875, 1122.337890625, 20.238082885742},
{-304.302734375, 1114.52734375, 19.7421875},
{-260.83984375, 1165.4375, 20.2421875},
{-251.5693359375, 1179.39453125, 19.93016242981},
{-259.517578125, 1156.6357421875, 19.7421875},
{-251.677734375, 1142.8095703125, 20.243007659912},
{-260.6396484375, 1130.6669921875, 19.759662628174},
{-253.7919921875, 1115.990234375, 20.232286453247},
{-248.8818359375, 1083.751953125, 19.902923583984},
{-262.7373046875, 1076.2373046875, 20.249408721924},
{-252.0732421875, 1054.12109375, 19.956705093384},
{-260.552734375, 1040.31640625, 20.2421875},
{-282.9853515625, 995.6962890625, 20.2421875},
{-267.791015625, 1004.333984375, 19.679946899414},
{-256.2158203125, 994.55859375, 20.239133834839},
{-242.8115234375, 1002.1748046875, 19.7421875},
}
local jobBlip
local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districts...
6. Pizzaboy
Witam ludzie. Mam takie kod na pizzaboy'a

[lua]
marker = createMarker (-1808.0444, 945.0520, 23.8906, "cylinder", 2, 255,255, 255)

cele =
{
{-1809.9414, 902.7003, 23.8906};
{-1754.7737, 961.4852, 23.8828};
{-1749.5458, 901.3094, 24.0859};
{-1757.7266, 901.4730, 24.0859};
{-1805.2479, 969.4067, 23.8906};
{-1733.7578, 988.9338, 16.6641};
{-1804.6573, 1008.8024, 23.8906};
{-1694.7106, 950.6655, 23.8906};
{-1698.7167, 883.6365, 23.8906};
{-1734.7786, 880.5306, 24.0859};

}

addEventHandler ( "onMarkerHit", marker, function ( element )
if getPedOccupiedVehicle ( element ) then return end
rnd = math.random ( 1, #cele )
x = createMarker ( cele[rnd][1], cele[rnd][2], cele[rnd][3], "cylinder",1.5, 255, 0, 0 )
blipcelu = createBlipAttachedTo ( x, 41)
skuter = createVehicle ( 448, -1809.9967, 941.9432, 24.8665 )
warpPedIntoVehicle ( element, skuter )
setElementData ( x, "owner", getPlayerName(element) )
outputChatBox("Dostarcz pizze do czerwonego punktu.")
destroyElement ( marker )
end)


addEventHandler ( "onMarkerHit", root, function ( element )
if getElementData ( source, "owner" ) then
destroyElement ( source )
destroyElement ( blipcelu )
outputChatBox("Dowioz?e? pizze. Wr?c w celu odebrania wyp?aty.")
end
end)

[/lua]

Wje?d?am w marker, bior? zlecenie, marker znika, pokazuje si? cel.......
7. Pizzaboy
Witam zrobi?em sobie skrypt. I podam funkcj? gdzie m. in. jest tepanie do pojazdu. Jak to zablokowa?, ?e gdy jeste?my ju? w jakim? poje?dzie to nie tworzy innych?


addEventHandler 
"onMarkerHit"marker, function ( element )
    
rnd math.random 1#cele )
    
createMarker cele[rnd][1], cele[rnd][2], cele[rnd][3], "cylinder",1.52550)
    
blipcelu createBlipAttachedTo x41)
    
skuter createVehicle 448, -1809.9967941.943224.8665 
    
warpPedIntoVehicle elementskuter 
    
setElementData x"owner"getPlayerName(element) )
    
outputChatBox("Dostarcz pizze do czerwonego punktu.")
end)