System mi si? podoba ale jest on w??czony tylko dla administrator?w, chcia?bym aby by? r?wnie? dla zwyk?ych graczy, pr?bowa?em doda? linijk? do acl'a ale to te? nic nie daje, chyba ?e robi? co? ?le, a to mo?liwe bo jestem zielony w tym wszystkim, a druga sprawa jest taka ?e chcia?bym aby dzia?a? tak?e gdy gracz jest w poje?dzie, bo do tej pory dzia?a tylko jak w nim nie jest
Teraz tylko zrobi? tak by mo?na by?o si? przenosi? b?d?c w poje?dzie, jakie? pomys?y?
Zamie? kod od linii 38 do 54 na:
addCommandHandler("warp",
function ( plr, cmd, warp )
if not warp then
outputChatBox("Poprawna forma: /warp nazwawarpu Lista warp?w znajduje si? pod komend? /warps", plr)
return end
for k,v in ipairs(getElementsByType("warp")) do
if warp == getElementData(v, "name") then
if isPedInVehicle(plr) then
local veh = getPedOccupiedVehicle(plr)
setElementDimension(veh, getElementData(v, "d"))
setElementInterior(veh, getElementData(v, "i"))
setElementPosition(veh, getElementData(v, "x"), getElementData(v, "y"), getElementData(v, "z"))
warpPedIntoVehicle(plr, veh)
end
outputChatBox("Teleportowanie do "..getElementData(v, "name").."", plr)
setElementDimension(plr, getElementData(v, "d"))
setElementInterior(plr, getElementData(v, "i"))
setElementPosition(plr, getElementData(v, "x"), getElementData(v, "y"), getElementData(v, "z"))
return
end
end
end
)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach