Witam....
Chc? zrobi? tak, ?eby po naci?ni?cu drugi raz tego samego klawisza brama np. zamyka?a by nam si?... lecz co? mi to nie wychodzi... Gdy daj? else setElementFroze(Drzwi_Sala_Szkoleniowa, false) end to drzwi nie chc? si? "odmrozi?"...
Witam, po d?u?szych poszukiwaniach problemu postanowi?em napisa? do was o pomoc.
M?j problem polega na tym, ?e w pliku .lua mam kod na bramy lecz nie potrafie zrobi? kilku bram w jednym pliku, poniewa? gdy s? one w jednym pliku to nie dzia?aj? tak jak powinny.
Kod skryptu:
[code]st = createObject ( 3458, 1142.3000488281, 1228.8994140625, 18.200000762939, 0, 0, 269.98901367188 )
function stOD (thePlayer)
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("GS")) then
moveObject ( st, 10000, 1142.3000488281, 1228.8994140625, 18.200000762939 )
outputChatBox ("Dach Zamkniety", thePlayer, 0, 255, 0, false )
end
end
function stCD (thePlayer)
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("GS")) then
moveObject ( st, 10000, 1147.4000244141, 1228.9000244141, 18.200000762939 )
outputChatBox ("Dach otwarty", thePlayer, 255, 0, 0, false )
end
end
st = createObject ( 3458, 1137.2000732422, 1228.8988037109, 18.200000762939, 0, 0, 269.99450683594 )
function stOD (thePlayer)
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("GS")) then
moveObject ( st, 10000, 1137.2000732422, 1228.8988037109, 18.200000762939 )
end
end
function stCD (thePlayer)
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("GS")...