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)
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
...
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?