Szerző Téma: Kapu csinálás  (Megtekintve 2303 alkalommal)

Nem elérhető EnterR

  • Globális moderátor
  • 4223
  • dawg
    • Profil megtekintése
Kapu csinálás
« Válasz #15 Dátum: 2016. Augusztus 20. - 19:32:15 »
+1 Show voters
Idézetet írta: GreenDead date=1471714150\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"62754\" data-ipsquote-contentclass=\"forums_Topic
De jó hogy OFF témával kell hsz hunterkedni  :)
 
3154 vagy 3155, már kurvára mindegy.

Kapu csinálás
« Válasz #16 Dátum: 2016. Augusztus 20. - 19:33:35 »
0 Show voters
Mivan?

Kapu csinálás
« Válasz #17 Dátum: 2016. Augusztus 20. - 19:35:42 »
0 Show voters
Idézetet írta: GreenDead date=1471714415\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"62754\" data-ipsquote-contentclass=\"forums_Topic
Mivan?
 
Itt nem az a lényeg, hogy a minél több hsz-ed legyen, de azért kár, hogy ezt nem tudom 4 hsz-be leírni, akkor több lenne.
www.twitch.tv/almightymartin

Az év STAFF tagja - 2015
Az év RP szervere - 2015 - [rc-rp.hu]

Red County Role Play [rc-rp.hu] - Tulajdonos
Project San Andreas [psa.hu] - Főadminisztrátor
See MTA LV [see-game.com] - Admin 4

Kapu csinálás
« Válasz #18 Dátum: 2016. Augusztus 20. - 19:43:55 »
0 Show voters
Rendben. Tulajdonképpen leszarom hszeket. Csak ne az OFF menjen.
De segítene valaki?
 
local prefix = \"teszt4life\"
gate = createObject(10828, 1550.5999755859, -1621.5999755859, 24.700000762939, 0, 0, 0)
open = false
function checkOpen(source)
if ( open == true ) then
    open = false
    gateClose(source)
else
    open = true
          gateOpen(source)
end
end
function gateOpen(source)
moveobject ( gate, 10828, 1550.5999755859, -1621.5999755859, 24.700000762939 )
outputChatBox ( prefix .. \"Teszt nyitva.\", source, 255, 255, 255, true )
end
function gateOpen(source)
moveobject ( gate, 10828, 1550.5999755859, -1621.5999755859, 8.8999996185303 )
outputChatBox ( prefix .. \"Teszt zárva.\", source, 255, 255, 255, true )
end
addCommandHandler(\"teszt\", checkOpen)

Kapu csinálás
« Válasz #19 Dátum: 2016. Augusztus 20. - 19:44:50 »
0 Show voters
Először is segítek, helyesen használni a code tagot.
 
local prefix = \"teszt4life\"
gate = createObject(10828, 1550.5999755859, -1621.5999755859, 24.700000762939, 0, 0, 0)
open = false
function checkOpen(source)
if ( open == true ) then
    open = false
    gateClose(source)
else
    open = true
          gateOpen(source)
end
end
function gateOpen(source)
moveobject ( gate, 10828, 1550.5999755859, -1621.5999755859, 24.700000762939 )
outputChatBox ( prefix .. \"Teszt nyitva.\", source, 255, 255, 255, true )
end
function gateOpen(source)
moveobject ( gate, 10828, 1550.5999755859, -1621.5999755859, 8.8999996185303 )
outputChatBox ( prefix .. \"Teszt zárva.\", source, 255, 255, 255, true )
end
addCommandHandler(\"teszt\", checkOpen)
www.twitch.tv/almightymartin

Az év STAFF tagja - 2015
Az év RP szervere - 2015 - [rc-rp.hu]

Red County Role Play [rc-rp.hu] - Tulajdonos
Project San Andreas [psa.hu] - Főadminisztrátor
See MTA LV [see-game.com] - Admin 4

Kapu csinálás
« Válasz #20 Dátum: 2016. Augusztus 20. - 20:04:50 »
0 Show voters
local prefix = \"teszt4life\"
local gate = createObject(10828, 1550.5999755859, -1621.5999755859, 24.700000762939, 0, 0, 0)
local open = false
function gateOpen()
open = true
moveObject(gate, 5000, 1550.5999755859, -1621.5999755859, 24.700000762939)
outputChatBox(prefix .. \"Teszt nyitva.\", source, 255, 255, 255, true)
end
function gateClose()
open = false
moveObject(gate, 5000, 1550.5999755859, -1621.5999755859, 8.8999996185303)
outputChatBox(prefix .. \"Teszt zárva.\", source, 255, 255, 255, true)
end
function checkOpen(source)
if open then
gateClose()
else
gateOpen()
end
end
addCommandHandler(\"teszt\", checkOpen)

 

<script src=\"script.lua\" type=\"server\" />

Kapu csinálás
« Válasz #21 Dátum: 2016. Augusztus 20. - 23:54:49 »
0 Show voters
köszönöm szépen a segítséget :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal