function customsCar ( theVehicle ) -- gdy kto? wsi?dzie do pojazdu
id = getVehicleID ( theVehicle ) -- bierze ID pojazdu
group = aclGetGroupName
if id == 432 then --je?eli ID tego pojazdu to 423 (Rhino) wtedy,
if group == "Admin" then -- sprawdza czy grupa ACL gracza to Admin
outputChatBox ( "Mozesz szerzyc *****!!!" ) --wiadomosc dla admina
else
destroyElement (theVehicle) --niszczy pojazd
outputChatBox ( "Tym pojazdem moga poslugiwac sie tylko Admini!!!" ) --wiadomosc dla gracza
end
end
end
addEventHandler ( "onPlayerEnterVehicle", getRootElement(), customsCarEnter ) --wlacza skrypt gdy ktos wejdzie do pojazdu