Witam chc? aby inni gracze nie mogli u?ywa? tego markeru tylko jedna osoba kt?ra rozpocznie prace. zrobi?em tak ale co? nie dzia?a. Oczywiscie oni tego markeru nie widz? ale jak wejda w to miejsce to i tak te funkcj? si? wykonuj? u osoby kt?ra rozpocz??a prace,
Witam mam problem poniewa? gdy gracz wejdzie w marker i stworzy mu si? pojazd do pracy (traktor) jego markery wida? chcia?bym ?eby nie by?o ich wida? dla innych graczy tylko dla rolnika.
function startjob (hitElement,myPlayer)
if source == Start then
outputChatBox("Jestes rolnikiem, twoim zadaniem jest zrobic orke po wyznaczonych markerach",hitElement)
auto1 = createVehicle ( 531,-1035.9000244141,-1172.5999755859, 129.19999694824)
warpPedIntoVehicle (hitElement,auto1)
marker1 = createMarker(-1191.5,-1060.5999755859,129.19999694824,"checkpoint",3,255,0,0,255,myPlayer,hitElement)
destroyElement (Start,localplayer)
end
end
addEventHandler("onMarkerHit",getRootElement(),startjob)
function marker1f (hitElement,myPlayer,Source)
if source == marker1 then
destroyElement (marker1)
marker2 = createMarker(-1099.4000244141,-1057,129.19999694824,"checkpoint",3,255,0,0,255,myPlayer,hitElement)
end
end
addEventHandler("onMarkerHit",getRootElement(),marker1f)
function marker2f (hitElement,myPlayer)
if source == marker2 then
destroyElement (marker2)
marker3 = createMarker(-1027.4000244141,-1058.5,129.19999694824,"checkpoint",3,255,0,0,255,myPlayer,hitElement)
end
end
addEven...