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: dzwi
1. Dzwi pod MYSQL
Witam mam skrypt pod drzwi lecz jest problem poniewa? jest on pod ACL a ja potrzebuje pod MYSQL ;/

KOD DRZWI :
[lua]function sprawdzPolicjanta(login)
if login then
if isObjectInACLGroup("user."..login, aclGetGroup("Policja")) then
--outputChatBox
return true
else return false
end
end
end

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

local brama1 = createObject(3089, 1532.5, -1677.5999755859, 9838.900390625, 0, 0, 90)

-- 1 Marker
local markerbrama1 = createMarker(1532.10, -1677.82, 9838.55, "cylinder", 0.4, 0, 0, 0, 0)
-- 2 Marker
local markerbrama12 = createMarker(1533.09, -1675.73, 9838.55, "cylinder", 0.4, 0, 0, 0, 0)


function otworzbrama1(thePlayer)
local login = getAccountName(getPlayerAccount(thePlayer))
if isElementWithinMarker(thePlayer, markerbrama1) or isElementWithinMarker(thePlayer, markerbrama12) then
if sprawdzPolicjanta(login) then
moveObject ( brama1, 3000, 1532.5, -1679, 9838.900390625 )
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
end
end
end
addCommandHandler("ob1", otworzbrama1)

function zamknijbrama1(thePlayer)
local login = getAccountName(getPlayerAccount(thePlayer))
if isElementWithinMarker(thePlayer, markerbrama1) or isElementWithinMarker(thePlayer, markerbrama12) then
...
2. Dzwi
witajcie potrzebuje pomocy ,, ot?? chce stworzy? dzwi kt?re otwieraj? sie jak sie do nich podejdzie a zamekaj? jak sie odejdzie ,, wa?ne jest to aby te dzwi sk?ada?y sie z 2 egzempla?y jak w supermarkiecie (( ID 1500)) tworze pr?buje ale nic .. ehh pomo?e kto? ??
3. dzwi pod scrool
witam nie wiem jak ustawi? dzwi pod scrool a nie pod komend? kod
Kod:

function od ( thePlayer)
if isElementWithinMarker(thePlayer, bm) then
if isPlayerInPoliceFaction(thePlayer) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 2500, 2326.1000976563, 2522.4, 1029.0999755859 ) -- 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 isPlayerInPoliceFaction(thePlayer) then --Tutaj zmieniasz tylko "Policja"
moveObject ( d, 2500, 2326.1000976563, 2523.8999023438, 1029.0999755859 ) -- koordy zamknietch drzwi
setTimer(setPedAnimation, 1066.66, 1, thePlayer)
setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
end
end
end
addCommandHandler("od", od ) -- haslo otwartych drzwi
addCommandHandler("zd", zd ) -- haslo zamknietych drzwi
bindKey(source,"mouse_wheel_up","both", od)
bindKey(source,"mouse_wheel_down","both", zd)
addEventHandler("onPlayerJoin",root,function()
end)