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...
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ć.
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,"...
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...
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.......
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?