Wysłany: 2014-12-24, 09:00
Dryfter
Wiek: 36 Na forum: 4287 dni Posty: 27
Piwa : 6
marker = createMarker (- 129.1484 , 1013.2408 , 24.8554 , "cylinder" , 1 , 0 , 0 , 255 )
mojeW , mojeH = 640 , 480
sW , sH = guiGetScreenSize ()
width , height = ( sW / mojeW ), ( sH / mojeH )
GUIEditor = {
button = {}
}
addEventHandler ( "onClientResourceStart" , resourceRoot ,
function()
monitor = guiCreateStaticImage ( 112 * width , 68 * height , 426 * width , 339 * height , "images/monitor.png" , false )
guiSetVisible ( monitor , false )
zamknij = guiCreateButton ( 283 * width , 278 * height , 119 * width , 29 * height , "Zamknij system" , false , monitor )
kamera1 = guiCreateButton ( 24 * width , 63 * height , 119 * width , 29 * height , "Gara? 1" , false , monitor )
monitoring = guiCreateLabel ( 21 * width , 25 * height , 203 * width , 33 * height , "Monitoring:" , false , monitor )
guiSetFont ( monitoring , "sa-header" )
guiLabelSetColor ( monitoring , 0 , 0 , 0 )
guiLabelSetHorizontalAlign ( monitoring , "left" , true )
kamera2 = guiCreateButton ( 24 * width , 102 * height , 119 * width , 29 * height , "Gara? 2" , false , monitor )
kamera3 = guiCreateButton ( 24 * width , 141 * height , 119 * width , 29 * height , "Gara? 3" , false , monitor )
kamera4 = guiCreateButton ( 24 * width , 180 * height , 119 * width , 29 * height , "Gara? 4" , false , monitor )
kamera5 = guiCreateButton ( 24 * width , 219 * height , 119 * width , 29 * height , "Przed budynkiem" , false , monitor )
kamera6 = guiCreateButton ( 24 * width , 258 * height , 119 * width , 29 * height , "W ?rodku jednostki" , false , monitor )
alarm = guiCreateButton ( 254 * width , 102 * height , 119 * width , 29 * height , "Dzwi?k upalania hondy" , false , monitor )
wezwanie = guiCreateButton ( 254 * width , 141 * height , 119 * width , 29 * height , "Zwo?aj ekipe" , false , monitor )
napisAlarm = guiCreateLabel ( 231 * width , 26 * height , 166 * width , 32 * height , "Alarm:" , false , monitor )
guiSetFont ( napisAlarm , "sa-header" )
guiLabelSetColor ( napisAlarm , 0 , 0 , 0 )
guiLabelSetHorizontalAlign ( napisAlarm , "left" , true )
wylacz = guiCreateButton ( 418 * width , 403 * height , 212 * width , 44 * height , "Wy??cz podgl?d z kamery" , false )
guiSetVisible ( wylacz , false )
wezwij = guiCreateWindow ( 92 * width , 163 * height , 470 * width , 155 * height , "Panel alarmowy Ochotniczej Stra?y Po?arnej" , false )
guiWindowSetSizable ( wezwij , false )
guiSetAlpha ( wezwij , 1.00 )
guiSetVisible ( wezwij , false )
wyslij = guiCreateButton ( 10 * width , 98 * height , 185 * width , 47 * height , "Wyslij" , false , wezwij )
anuluj = guiCreateButton ( 275 * width , 98 * height , 185 * width , 47 * height , "Anuluj" , false , wezwij )
tekst = guiCreateEdit ( 10 * width , 26 * height , 450 * width , 51 * height , "" , false , wezwij )
end
)
function otworz ()
guiSetVisible ( monitor , true )
showCursor ( true )
outputChatBox ( "Zalogowa?e? si? na komputer JBB." )
end
addEventHandler ( "onClientMarkerHit" , marker , otworz )
function zamknij ()
if source == zamknij then
guiSetVisible ( monitor , false )
showCursor ( false )
outputChatBox ( "Wylogowa?e? si? z systemu." )
end
end
addEventHandler ( "onClientGUIClick" , root , zamknij )
-- kamery + off kamer
Jest to kod od jak dobrze pami?tam Dixers .Jest to komputer osp kt?ry ja chcia?bym nieco przerobi? ale to p??niej.Pierwsze chcia?bym wiedzie? co zrobi? z tym ?e po wej?ciu w marker komputer pokazuje si? ka?demu graczowi na serwerze.
I jeszcze jakby kto? by? tak mi?y i wyja?ni? mi dzia?anie funkcji setCameraMatrix (chodzi o kordy, jak ustawi?) to by?bym bardzo wdzi?czny.
Więcej szczegółów
Wystawiono 4 piw(a):MAXD_RBLX , Bambo2003 , MixsuPL , Pawelo
Wysłany: 2014-12-24, 09:20
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
setCameraMatrix zawiera 6 argument?w :
x,y,z - to argumenty gdzie ma sta? kamera
lookX, lookY, lookZ - to argumenty gdzie ma si? patrze?
Wysłany: 2014-12-24, 09:32
Dryfter
Wiek: 36 Na forum: 4287 dni Posty: 27
Piwa : 6
Dzieki.A wiesz czemu wy?wietla si? ten komputer dla wszystkich graczy?
Wysłany: 2014-12-24, 09:38
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
function otworz ()
guiSetVisible ( monitor , true )
showCursor ( true )
outputChatBox ( "Zalogowa?e? si? na komputer JBB." )
end
addEventHandler ( "onClientMarkerHit" , marker , otworz
Popraw to na
function otworz ( element )
if element ~= localPlayer then return end
guiSetVisible ( monitor , true )
showCursor ( true )
outputChatBox ( "Zalogowa?e? si? na komputer JBB." )
end
addEventHandler ( "onClientMarkerHit" , marker , otworz
Wysłany: 2014-12-24, 10:41
TheTroll
Pan Majster
Wiek: 38 Na forum: 4764 dni Posty: 219
Nick w MP: TheTroll
Piwa : 1114
Ma?a poprawka kolegi z g?ry
function otworz ( element )
if element ~= localPlayer then return end
guiSetVisible ( monitor , true )
showCursor ( true )
outputChatBox ( "Zalogowa?e? si? na komputer JBB." )
end
addEventHandler ( "onClientMarkerHit" , marker , otworz )
Wysłany: 2014-12-26, 21:54
Dryfter
Wiek: 36 Na forum: 4287 dni Posty: 27
Piwa : 6
Tagi: skrypt :: osp
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: