Wysłany: 2014-10-11, 16:41
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
mam taki kod :
marker = createMarker (- 99.81665802002 , 1107.8726806641 , 19.7421875 , 'cylinder' , 2.0 , 255 , 255 , 255 , 150 )
function fix ()
local theVehicle = getPedOccupiedVehicle ( playerSource )
if theVehicle and getVehicleController ( theVehicle ) == playerSource then
fixVehicle ( theVehicle )
outputChatBox ( "Pojazd zosta? naprawiony!" , thePlayer )
end
end
addEventHandler ( "onMarkerHit" , marker , createvehicle )
z internetu i oco tu chodzi nie tworzy marekera
Wysłany: 2014-10-11, 16:48
Vike4562
LUA <3
Wiek: 28 Na forum: 4937 dni Posty: 144
Nick w MP: Vike4562
Piwa : 32
marker musi si? tworzy? w tej pozycji: -99.81665802002, 1107.8726806641, 19.7421875
Wysłany: 2014-10-11, 16:53
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Wysłany: 2014-10-11, 17:04
Vike4562
LUA <3
Wiek: 28 Na forum: 4937 dni Posty: 144
Nick w MP: Vike4562
Piwa : 32
A po jakiej stronie da?e? skrypt? Client czy Server? Bo t? funkcj? musisz zastosowa? po stronie servera.
Wysłany: 2014-10-11, 17:33
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
Wysłany: 2014-10-11, 17:57
Vike4562
LUA <3
Wiek: 28 Na forum: 4937 dni Posty: 144
Nick w MP: Vike4562
Piwa : 32
Z tego co wiem to po wjechaniu ma si? aktywowa? funkcja tak?
musi by? tak:
Kod: addEventHandler ( "onMarkerHit", marker, fix)
A dlaczego nie tworzy markera to nie mam poj?cia xD
Wysłany: 2014-10-12, 01:37
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Wysłany: 2014-10-12, 09:06
Vike4562
LUA <3
Wiek: 28 Na forum: 4937 dni Posty: 144
Nick w MP: Vike4562
Piwa : 32
Je?eli zmieni na client to kod musi wygl?da? troch? inaczej
( sprawdza?em kod u siebie, dzia?a )
Je?eli chcesz mie? w Client:
marker = createMarker (- 99.81665802002 , 1107.8726806641 , 19.7421875 , "cylinder" , 2.0 , 255 , 255 , 255 , 150 )
function fix ()
local theVehicle = getPedOccupiedVehicle ( getLocalPlayer ())
if theVehicle and getVehicleController ( theVehicle ) == getLocalPlayer () then
fixVehicle ( theVehicle )
outputChatBox ( "Pojazd zosta? naprawiony!" )
end
end
addEventHandler ( "onClientMarkerHit" , marker , fix )
A tu je?eli w Server:
marker = createMarker (- 99.81665802002 , 1107.8726806641 , 19.7421875 , 'cylinder' , 2.0 , 255 , 255 , 255 , 150 )
function fix ( playerSource )
local theVehicle = getPedOccupiedVehicle ( playerSource )
if theVehicle and getVehicleController ( theVehicle ) == playerSource then
fixVehicle ( theVehicle )
outputChatBox ( "Pojazd zosta? naprawiony!" , thePlayer )
end
end
addEventHandler ( "onMarkerHit" , marker , fix )
Wysłany: 2014-10-14, 17:02
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
NO ok , a jak tera da,c aby zabiera?o jeszcze 150$??
Wysłany: 2014-10-14, 18:03
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
marker = createMarker (- 99.81665802002 , 1107.8726806641 , 19.7421875 , 'cylinder' , 2.0 , 255 , 255 , 255 , 150 )
function fix ( playerSource )
local theVehicle = getPedOccupiedVehicle ( playerSource )
if theVehicle and getVehicleController ( theVehicle ) == playerSource then
fixVehicle ( theVehicle )
outputChatBox ( "Pojazd zosta? naprawiony!" , thePlayer )
takePlayerMoney ( source , 150 )
end
end
addEventHandler ( "onMarkerHit" , marker , fix )
Wysłany: 2014-10-14, 18:29
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
marker sie nie tworzy !
[ Dodano : 2014-10-14, 18:44 ]
ok , marker sie tworzy , ale nie fixa auta
Wysłany: 2014-10-14, 23:06
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Zamiast fixVehicle spr?buj da? to:
setElementHealth ( theVehicle , 1000 )
Wysłany: 2014-10-15, 14:01
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
dalej nic , a to ma byc po CLIENT czy SERVER ?
Wysłany: 2014-10-15, 14:11
Dixers
No-Life
Wiek: 26 Na forum: 4313 dni Posty: 549
Nick w MP: Dixers
Piwa : 412
Wysłany: 2014-10-15, 14:20
BlackTen
LUA Dev.
Wiek: 28 Na forum: 4329 dni Posty: 698
Piwa : 2080
juz dziala , nie musi byc server mi dziala client
Tagi: funkcja :: marker
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: