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: dimensionu
1. Uzyskanie Takiego Samego Dimensionu I Interioru
Witam mam oto taki skrypt na kajdanki dla frakcji SAPD

[code]function findPlayer(plr,cel)
local target=nil


if (tonumber(cel) ~= nil) then
target=getElementByID("p"..cel)
else -- podano fragment nicku
for _,thePlayer in ipairs(getElementsByType("player")) do
if string.find(string.gsub(getPlayerName(thePlayer):lower(),"#%x%x%x%x%x%x", ""), cel:lower(), 0, true) then
if (target) then
triggerClientEvent(plr, 'onClientCaseShowing', root, 1,'Znaleziono Wi?cej U?ytkownik?w O Podobnym Nicku')
return nil
end
target=thePlayer
end
end
end
if target and getElementData(target,"p:inv") then return nil end
return target
end



kaj = {}

function zalozkaj(plr, cmd, target)
if not target then
triggerClientEvent(plr, 'onClientCaseShowingsse', root, 1,'U?yj Komendy: /Zakuj [Id U?ytkownika]')
return
end
local gracz = findPlayer(plr, target)
if getElementData(plr,"player:faction") and getElementData(plr,"player:faction") == "SAPD" then
if getElementData(plr, "kajdanki") == false then

local gracz = getPlayerName(gracz)
local gracz = getPlayerFromName(gracz)
local x2,y2,z2 = getElementPosition(gracz)
local x,y,z = getElementPosition(plr)
if (getDistanceBetweenPoints3D(x,y,z,x2,y2,z2)<20) then
toggleControl(gracz, "enter_exit", false)
toggleControl(gracz, "enter_passenger...
2. Ustawienie dimensionu i interioru
Prosi?bym Was o pomoc w ustawieniu w tym skrypcie dimensionu i interioru:

[lua]
bm = createMarker(1544.33,1626.44,10.84, "cylinder", 1.0, 0, 0, 0, 255) -- gdzie ma byc marker w ktorym bedzie sie scrollowac
d = createObject (1569, 1546.28,1627.42,10.84 0, 0, 0) -- podajesz koordy obiektu

local kategoria_animacji = "CRIB"
local animacja = "CRIB_Use_Switch"

function od ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Policja")) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 1550.0,1627.52,10.84 ) -- Koordy otwartych drzwi
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
end
end
end

function zd ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Policja")) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 2500, 1546.12,1627.52,10.84 ) -- koordy zamknietych drzwi
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
end
end
end
addCommandHandler("756djgndng5r54gt7875t54t65bgy45g", od ) -- h...