Witam zacz??em pisa? skrypt na prace dorywcz? kierowcy autobusu. ?e wejd? w marker i tworzy si? pojazd coach. Ale mam taki problem o bym chcia? ?eby tepn??o gracz do tego pojazdu. Nie wiem jak to zrobi?. Za pomoc
[code]
local m=createMarker(-1756,951,23.4,"cylinder", 4, 255,100,100,150)
function pojazd(thePlayer)
local coach= createVehicle(437,-1756,951,26,0,0,90)
outputChatBox("Witaj wlasnie zaczales/zaczelas prace jako kierowca autobusu!", 255,0,0,true)
local thePed = getElementPosition(thePlayer)
warpPedIntoVehicle ( thePed ,coach )
isPedInVehicle ( thePed )
end
addEventHandler("onClientMarkerHit", m,pojazd) |