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: warpplayerintovehicle
1. warpPlayerIntoVehicle
Siemanko chcia?em dorobi? do serwera przydatn? dla mnie komend?, wszystko pi?knie tylko ?e gracza nie teleportuje do pojazdu :P

addCommandHandler("respawnauta",function(plr,cmd,id,ccar)
   if 
getAdmin(plr,4then
   local veh 
getPedOccupiedVehicle(plr)
   if 
not id or not tonumber(idthen
        outputChatBox
("MS♛ •  Podaj id pojazdu!"plr25500)
        return
    
end
    
if not veh then
       outputChatBox
("MS♛ •  Musisz by? w pojed?dzie."plr255,0,0)
       return
    
end
    local id 
getElementData(veh"vehicle:id")
    
local x,y,z=getElementPosition(veh)
    
local rx,ry,rz=getElementRotation(veh)
    
local aktualna_pozycja={x,y,z,rx,ry,rz}
    
exports["pystories-vehicles"]:onSaveVehicle(veh)
    
destroyElement(veh)
    
exports["pystories-db"]:dbSet("UPDATE pystories_vehicles SET parking=1,tp_to_parking=? WHERE id=?","Respawn RCON"id)
    
setTimer(function(graczidaktualna_pozycja)
        
local x exports["pystories-vehicles"]:onRespawnVehicles(_,tonumber(id), aktualna_pozycja)
        
warpPlayerIntoVehicle plr)
    
end501clientidaktualna_pozycja)
    
end
end
)