Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pasażer
1. pasażer
Witam czy na mta wiki istnieje jaka? funkcja odpowiedzialna za pasa?era?
2. Pasażer zabiera HP kierowcy
Co zrobi? gdy pasa?er robi?c driveby zabiera hp kierowcy? Chodzi mi o to ?eby wszyscy siedz?cy w jednym aucie nie mogli zabiera? sobie HP
3. Prawo Jazdy - Nie mogę wsiąść jako pasażer bez prawka
Cze??. Mam taki problem z kodem mianowicie zrobi?em tak, aby nie mo?na by?o wsi??? do pojazdu gdy si? nie ma prawa jazdy (r?wnie? zrobi?em ?eby wyrzuca?o z pojazdu jak kto? jakim? cudem wsi?dzie). Ale gdzie? pope?ni?em b??d i podczas pr?by wej?cia do pojazdu jako pasa?er bez prawka na G jest to nie mo?liwe. Prosz? o pomoc, dam piwo i repk?!

[lua]addEventHandler("onClientVehicleEnter",getRootElement(),
function (player,seat)
if player ~= localPlayer then return end
if seat ~= 0 then return end
if getElementData(localPlayer, "VehSchool") == source then return end
if getElementData(source, "OwnerSchool") then
if getElementData(source, "OwnerSchool") ~= player then
setPedControlState(player, "enter_exit", true )
outputChatBox("To nie jest tw?j pojazd!",255,64,0,true)
return
end
end
for _,src in pairs(id_Lic) do
if getElementModel(source) == src[1] then
if getElementData(player, src[2]) ~= true then
outputChatBox("Nie posiadasz uprawnie? dla tej kategorii pojazdu!",255,64,0,true)
setTimer(function()
setPedControlState(player, "enter_exit", true )
end,50,10)
end
end
end
end
)

addEventHandler("onVehicleStartEnter",getRootElement(),
function (player,seat, jack, door)
if getElementData(player, "VehSchool") == sourc...
4. ped jako pasażer
Witam mam pytanko jak zrobi? ?eby 2 pedy siedzia?y w jednym aucie ??
w sensie kiero i pasa?er..
za pomoc daje piwko :P
5. Funkcja na wsiadanie do pojazdu jako pasażer
Czy jest funkcja pozwalaj?ca graczowi wsi??? do auta jako pasa?er?
Od razu m?wi? testowa?em setControlState i executeCommandHandler.