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: resp
1. Resp domku
Witam, mam pro?b? pom?g? by kto? doda? do Panelu Logowania spawn na domku tak?e bazie organizacji?

Kod:

[lua]if getElementData(localPlayer, "player:logged") then return end

local spawns = {
{name = "Los Santos", pos = Vector3(1214.97, -1812.75, 16.59),},
{name = "Prawo Jazdy", pos = Vector3(1568.04, -1893.97, 13.56),},
{name = "Przechowywalnia LS", pos = Vector3(1296.48, -1868.84, 13.55),},
}

local map = {
size = 1980,
zoom = {
actual = 3.0,
limit = {1.3, 3.0},
plus = 0,
},
moving = nil,
unit = 1980/6000
}

local worldW, worldH = 0, 0
local mapOffsetX, mapOffsetY = 0, 0
playerMapOffsetX, playerMapOffsetY = 0, 0

map.positions = {}
map.positions.w, map.positions.h = 733*px, 462*py
map.positions.x, map.positions.y = 650*px, 309*py

local newPlayerX, newPlayerY = nil, nil

local function clickMap(button, state, cx, cy)
if chooseSpawn then
if button == "left" then
if state == "down" then
local x, y, w, h = map.positions.x, map.positions.y, map.positions.w, map.positions.h
if cx >= x and cx <= x + w and cy >= y and cy <= y + h then
mapOffsetX = cx * map.zoom.actual + playerMapOffsetX
mapOffsetY = cy * map.zoom.actual - playerMapOffsetY
mouseCurrentPositionX, mouseCurrentPositionY = getCursorPositi...
2. Ten sam resp
Witam posiadam logowanie i gdy si? loguje , pozniej mam wybieranie spawnu
mam ustawione 3 : Spawn FC, Spawn BB, Urz?d . Gdy klikne na obojetnie kt?ry wywala mnie tylko do FC a nie np. Pod urz?d lub do BB, a b??du w DB3 brak
c_zone.lua
[lua]
local login = {}

local dist = 100
local angler = 0
rX, rY = 0, 0

local foncik = dxCreateFont("assets/bold.ttf", 15)
local foncik2 = dxCreateFont("assets/normal.ttf", 22)
local foncik1 = dxCreateFont("assets/bold.ttf", 11)
local sx,sy = guiGetScreenSize() -- pobieramy rozdzielczo?? gracza kt?ry widzi gui
local px,py = (sx/1366),(sy/768) -- dzielimy rozdzielczo?? gracza kt?ry widzi gui przez rozdzielczo?? na kt?rej by?o robione
local screenW, screenH = guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=nil, }

function math.round(number, decimals, method)
decimals = decimals or 0
local factor = 10 ^ decimals
if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor
else return tonumber(("%."..decimals.."f"):format(number)) end
end

function getPointFromDistanceRotation(x, y, dist, angler)
local a = math.rad(90 - angler)
local dx = math.cos(a) * dist;
local dy = math.sin(a) * dist;
return x+dx, y+dy;
end

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
if not isCursorShowing() then return end
cx,cy=getCursorPosition()
cx,cy=cx*sx,cy*sy
i...
3. 2x resp

setTimer
(function()
                
outputChatBox("Tw?j identyfikator: Air-" ..math.random(1,9).. " Powodzenia!",gracz,255,255,255)
                
local samolot createVehicle(5931890.95, -2629.0613.55+0.25)
                
outputChatBox("Tw?j samolot jest gotowy do lotu",gracz,255,255,255)
                
local transport createVehicle(4851884.78, -2409.6313.55+0,25)
         
end50001)      


co tu jest nie tak ?e respi mi pojazd 485 podw?jnie xD?
4. Resp aut
Czesc, posiadam skrypt na wyjmowanie auta od odpowiedniej rangi gdy sie wejdzie w marker, no i teraz mam tak ustawione, ?e jak ktos wyjdzie z auta to po jakims czasie sie usuwa. A chcia?bym zrobi? tak aby auto znikalo po ponownym wzieciu tego samego modelu, narazie mam blokade na 1 auto tego samego modelu. Jakies sugestie?
5. Nie działa resp aut pod /p
Witam posiadam Pysa 3.0 i nie dziala mi resp aut pod /p wie ktos o co chodzi? za dobre wytlumaczenie stawiam piwko :D :piwo:
6. resp pojazdow
Witam jest mozliwosc zrespienia pojazdu z naczepa?
7. Resp auta po kupnie.
Siemka . Jak zrobi? resp w wybranym miejscu po kupnie pojazdu gm ogrpg.
Salon
[lua]
salon_s

local positionVehicles = {

--{'NAZWA',ID, math.random(0,10), CENA, 2886.20, 2257.11, 10.75, 359.36, 359.93, 43.58},

-- CYGAN
{'Moonbeam', 418, math.random(51718,82719), math.random(3800,4000), 2235.03, 2050.32, 10.91, 0.1, 0.0, 89.5},
{'Walton', 478, math.random(51718,82719), math.random(3800,4000), 2235.07, 2042.38, 10.81, 359.2, 360.0, 89.9},
{'Sadler', 543, math.random(51718,82719), math.random(8800,9000), 2246.52, 2042.51, 10.64, 359.0, 0.0, 269.8},
{'Perennial', 404, math.random(51718,82719), math.random(3800,4000), 2235.24, 2034.73, 10.56, 359.7, 0.0, 90.1},
{'Manana', 410, math.random(51718,82719), math.random(4800,5000), 2246.01, 2050.19, 10.47, 359.4, 0.0, 269.5},
{'Nebula', 516, math.random(51718,82719), math.random(10000,10200), 2246.58, 2034.83, 10.65, 360.0, 0.0, 269.9},
{'Oceanic', 467, math.random(51718,82719), math.random(14800,15000), 2233.08, 2063.76, 10.56, 0.0, 0.0, 179.9},
{'Glendale', 466, math.random(51718,82719), math.random(11800,12000), 2241.49, 2063.93, 10.56, 0.0, 360.0, 180.1},
{'Bobcat', 422, math.random(51718,82719), math.random(13800,14000), 2249.84, 2063.91, 10.80, 359.1, 360.0, 179.5},
{'Picador', 600, math.random(31718,52719), math.random(19800,20000), 2258.31, 2063.99, 10.53, 359.1, 360.0, 180.7},
{'Vincent', 540, math.random(31718,52719), math.random(23000...
8. Resp Aut
Witam mam problem z respem aut skryptem, Chodzi o to ze wchodze w prace i powino zrespic sie auto i nim mia??m pojecha? do celu ale respi mnie bez auta kod

[lua]
local praca = createMarker(-519.49, -98.85, 62.63, "cylinder", 2.0, 255, 0, 0, 130)

local baza = {
{-535.87, -102.76, 63.01},
{-535.87, -102.76, 63.01},
{-535.87, -102.76, 63.01},
{-535.87, -102.76, 63.01},

}

local miejscaelektryk = {
{2032.04,1011.66,10.39},
{2032.04,1011.66,10.39},
{2032.04,1011.66,10.39},
{2032.04,1011.66,10.39},

}
--------------RESP-AUT----------------------------
function removePreviousVehicles(plr)
for i,v in ipairs(getElementsByType("vehicle", resourceRoot)) do
local sby = getElementData(v, "zrespilGracz")
if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then
destroyElement(v)
end
end
end

addEventHandler("onMarkerHit", m1, function(el, md)
if getElementData(el, "zrespilGracz") then
return
end

if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end

local x,y,z = getElementPosition(el)
local bus = createVehicle(541, -544.62, -74.67, 62.57, 359.4, 360.0, 270.8)
local ped = createPed( 250, 100, 0, 5)

setElementData(bus,"vehicle:desc","")
setElementData(bus, "zrespilGracz", el)
setElementData(bus, "vehicle:fuel", 55...
9. Resp na serwer zombie
Mam problem z kodem. Ot?? chcia?em zrobi? skrypt na serwer zombie aby respi?o si? po ?mierci z tym samym skinem w jednym tym samym miejscu obj?tym greenzonem. Skrypt dzia?a do 2 ?mierci a po drugiej respie si? z tym samym skinem ale na spawnie z freeroama podczas gamemodu play lecz bez gamemodu w szpitalu z tym samym skinem. Tutaj jest kod w lua: Http://pastebin.com/NRjuiJCf
10. Resp
Cze?? , mam ma?y problem a ty problemem jest to ,?e :
-nie umiem zrobi? respawnu dw?ch i wi?cej , pr?bowa?em jako? kombinowa? ale nie uda?o si? .
-Gdy robi?em resp to nie dzia?a? na starcie w sensie jak wesz?em na serwer , je?li mog? bardziej to opisa? to nigdzie mnie nie respi?o , i jedyny spos?b by si? zrespi? to u?y? F1> map , ale p??niej dzia?a?o normalnie .
-A i nie rozumiem , tego
Kod:

float getDistanceBetweenPoints2D ( float x1, float y1, float x2, float y2 )

chodzi , jak mam go poprawnie uzupe?ni? , szuka?em przyk?adu bo najlepiej wtedy rozumiem ale nie znalaz?em , na samym pocz?tku my?la?em ,?e
float x1 - to wsp??rz?dne X pierwszego respa . a float y1 - to wsp??rz?dne Y pierwszego te? respa . Po uzupe?nieniu , mia?em czarny ekran . Wiem ,?e wielki gamo? ze mnie , ale mam nadzieje ,?e wy u?ytkownicy gtao.pl pomo?ecie mi .
11. Resp po śmierci
Nie wiem co tu jest nie tak, za pomoc oczywi?cie :piwo: ;)

    
function resp (totalAmmokillerWeaponbodypartstealth)
        
local bron getPedWeapon (source)
        
local amunicja getPedTotalAmmo (source)
        
fadeCamera(source,true)
        
setTimer (spawnPlayer100001source1468.30872, -1710.8106713.04688getPedSkin (source), 00)
        
setTimer (setCameraTarget102501sourcesource)
         
setTimer (giveWeapon100001sourcebronamunicjatrue)
    
end
addEventHandler 
("onPlayerWasted"getRootElement(), resp)