Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-02-16, 15:27


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Witam Ma o to taki problem bo nie wiem jak zrobi? teleport ,ale na komend? np: /lv i tepa na podane namiary w skrypcie
Za pomoc Stawiam :arrow: :piwo:

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-16, 15:36


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Prosz?


addCommandHandler("komenda",function(plr,cmd)
    setElementPosition(plr,x,y,z)
    setElementRotation(plr,0,0,0)
    setElementInterior(plr,interior)
    setElementDimension(plr,dimension)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-16, 20:09


killercycDDS

Migacz






Wiek: 25
Na forum: 4512 dni
Posty: 629
Nick w MP: killer_cyc[DDS]

Piwa: 1659

Respekt: 22

jak dla mnie to jest proztsze

function teleport( hitPlayer, matchingDimension )
outputChatBox("text!", thePlayer, 0, 250, 0)
setElementPosition ( hitPlayer, x,y,z )
end

addCommandHandler("tp", teleport)

jak nie chcesz info w czacie usu? to

outputChatBox("text!", thePlayer, 0, 250, 0)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-16, 20:17


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Cytat:


function teleport( hitPlayer, matchingDimension )
outputChatBox("text!", thePlayer, 0, 250, 0)
setElementPosition ( hitPlayer, x,y,z )
end

addCommandHandler("tp", teleport)


Co ty tu cz?owieku tworzysz ?? ? Poda? mu dobry kod wi?c temat tak jakby zamkni?ty... A w dodatku po co ci tam jakie? hitPlayer'y i matchingDimension ?!?!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-16, 22:02


Tostuch







Wiek: 27
Na forum: 4931 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Lepiej u?ywa? funkcji spawnPlayer a ni?eli setElementPosition, powoduje to pewne bugi..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-17, 06:48


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

"Tostuch" napisał/a:

Lepiej u?ywa? funkcji spawnPlayer a ni?eli setElementPosition, powoduje to pewne bugi..



Je?li u?yjesz spawnPlayer po wej?ciu na serwer, nie stworzy si? bug.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: teleport :: komende
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku