| Tematy otagowane jako: zapinania |
| 1. Zmiana klawiszu zapinania pasu na OWL GAMING |
Siemanko, potrzebuje zmieni? bind na pasy, poniewa? koliduje si? on z Voice chatem. Jest to trudne poniewa? nie ma binda tylko pewna funkcja.
O to linijki, kt?re s? odpowiedzialne za pasy
[code]local noBelt = { [431] = true, [437] = true }
function seatbelt(thePlayer)
if getPedOccupiedVehicle(thePlayer) then
local theVehicle = getPedOccupiedVehicle(thePlayer)
if (getVehicleType(theVehicle) == "BMX" or getVehicleType(theVehicle) == "Bike") or (noBelt[getElementModel(theVehicle)] and getVehicleOccupant(theVehicle, 0) ~= thePlayer) then
outputChatBox("Ten pojazd nie ma pas?w!", thePlayer, 255, 0, 0)
else
if (getElementData(thePlayer, "seatbelt") == true) then
exports.anticheat:changeProtectedElementDataEx(thePlayer, "seatbelt", false, true)
outputChatBox("Odpinasz pasy.", thePlayer, 255, 0, 0)
exports.global:sendLocalMeAction(thePlayer, "odpina pasy.")
else
exports.anticheat:changeProtectedElementDataEx(thePlayer, "seatbelt", true, true)
outputChatBox("Zapinasz pasy.", thePlayer, 0, 255, 0)
exports.global:sendLocalMeAction(thePlayer, "zapina pasy.")
end
end
end
end
addCommandHandler("pasysamo", seatbelt)
addCommandHandler("pasy", seatbelt)
addEvent('realism:seatbelt:toggle', true)
addEventHandler('realism:seatbelt:toggle', root, seatbelt)
function removeSeatbelt(thePlayer)
if getEleme... |
| 2. [INNE] System Zapinania Pasów |
Witam , da? by kto? kod do Systemu Zapinania Pas?w ?
m.i.n chcia?bym aby on by? taki
po wej?ciu do pojazdu wyskakuje info : Przed jazd? zapnij pasy wpisuj?? /zp
gdy wpisz? /zp wyskakuje mu info , Pasy zosta?y zapi?te
Nast?pnie Komenda aby odpi?? pasy /odepnijp
i ?eby pisa?o Pasy Zosta?y Odpi?te .
. |
|