Wysłany: 2012-08-31, 21:12
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
Mam ma?y problem z bram?, oto kod:
Kod:
szlabanpoli = createObject ( 968, -1572.1999511719, 658.79998779297, 6.9000000953674, 0, 90, 90 )
function openSzlabanPoli ( command, thePlayer )
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli, 968, -1572.19921875, 658.7998046875, 6.9000000953674, 0, -90, 0 )
end
end
addCommandHandler ( "otworzszlaban", openSzlabanPoli )
function closeSzlabanPoli ( command, thePlayer )
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli, 968, -1572.1999511719, 658.79998779297, 6.9000000953674, 0, 90, 0 )
end
end
addCommandHandler ( "zamknijszlaban", closeSzlabanPoli )
Wysłany: 2012-08-31, 21:13
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
Wysłany: 2012-08-31, 21:15
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
masz
Kod:
<meta>
<info type="script" name="Policja"></info>
<script src="bramypoli.lua"></script>
</meta>
Wysłany: 2012-08-31, 21:17
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
Kod: <meta>
<info type="script" name="Policja" />
<script src="bramypoli.lua" type="server" />
</meta>
Wysłany: 2012-08-31, 21:25
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
nie dzia?a, masz debuga:
Wysłany: 2012-08-31, 21:27
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
szlabanpoli = createObject ( 968 , - 1572.1999511719 , 658.79998779297 , 6.9000000953674 , 0 , 90 , 90 )
function openSzlabanPoli ( thePlayer , cmd )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( thePlayer )), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli , 968 , - 1572.19921875 , 658.7998046875 , 6.9000000953674 , 0 , - 90 , 0 )
end
end
addCommandHandler ( "otworzszlaban" , openSzlabanPoli )
function closeSzlabanPoli ( thePlayer , cmd )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( thePlayer )), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli , 968 , - 1572.1999511719 , 658.79998779297 , 6.9000000953674 , 0 , 90 , 0 )
end
end
addCommandHandler ( "zamknijszlaban" , closeSzlabanPoli )
Wysłany: 2012-08-31, 21:30
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
dzia?a, postawie ci piwko
[ Dodano : 2012-09-01, 10:10 ]
i tu pada kolejny problemik, jak masz binda(np. /bind 1 otworzszlaban i /bind 2 zamknijszlaban ) to brama nie zamyka si? tylko ustawia tak(doda?em otwieranie na markery):
czy jest na to jaka? funkcja blokuj?ca??
Wysłany: 2012-09-01, 10:25
luki123luki123
Place Game
Wiek: 28 Na forum: 5275 dni Posty: 1948
Nick w MP: LuKiO
Piwa : 6101
Wysłany: 2012-09-01, 10:26
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
masz:
szlabanpoli = createObject ( 968 , - 1572.1999511719 , 658.79998779297 , 6.9000000953674 , 0 , 90 , 90 )
wjazdszlabanpoli = createMarker ( - 1569.0999755859 , 661.59997558594 , 6.1999998092651 , "cylinder" , 3 , 0 , 0 , 255 )
wyjazdszlabanpoli = createMarker ( - 1574.5999755859 , 661.79998779297 , 6.1999998092651 , "cylinder" , 3 , 0 , 0 , 255 )
function szlabanPoli ( thePlayer , cmd )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( thePlayer ) ), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli , 968 , - 1572.19921875 , 658.7998046875 , 6.9000000953674 , 0 , - 90 , 0 )
setTimer (
function( thePlayer , cmd )
moveObject ( szlabanpoli , 968 , - 1572.1999511719 , 658.79998779297 , 6.9000000953674 , 0 , 90 , 0 )
end , 5000 , 1 )
else
outputChatBox ( "Nie jeste? w Policji!!" , source , 0 , 0 , 255 )
end
end
addEventHandler ( "onMarkerHit" , wjazdszlabanpoli , szlabanPoli )
addEventHandler ( "onMarkerHit" , wyjazdszlabanpoli , szlabanPoli )
Wysłany: 2012-09-01, 11:50
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
Wi?c tak:
Najpierw stw?rz do?? spory marker, kt?ry obejmuje ca?y szlaban.
Potem dodaj do tego taki kod:
szlabanpoli = createObject ( 968 , - 1572.1999511719 , 658.79998779297 , 6.9000000953674 , 0 , 90 , 90 )
local marker = ...
function openSzlabanPoli ( hitElement , matchingDimension )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( hitElement )), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli , 968 , - 1572.19921875 , 658.7998046875 , 6.9000000953674 , 0 , - 90 , 0 )
end
end
addEventHandler ( "onMarkerHit" , marker , openSzlabanPoli )
function closeSzlabanPoli ( hitElement , matchingDimension )
if isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( hitElement )), aclGetGroup ( "Policja" ) ) then
moveObject ( szlabanpoli , 968 , - 1572.1999511719 , 658.79998779297 , 6.9000000953674 , 0 , 90 , 0 )
end
end
addEventHandler ( "onMarkerLeave" , marker , closeSzlabanPoli )
Wysłany: 2012-09-01, 13:13
vipSEBOvip
A poor begginer
Wiek: 26 Na forum: 5178 dni Posty: 597
Nick w MP: xSebaPL
Piwa : 77
nie mo?na podchodzi? w 2 osoby
Tagi: brama
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: