Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onEnter (player, seat, jacker)
- if seat == 0 then
- local datauato = getElementData(source,"OSP")
- if datauato == true then
- if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)),aclGetGroup("OSP")) then
- outputChatBox(player,"Ten pojazd należy do OSP. Nie możesz prowadzić tego pojazdu!")
- cancelEvent()
- end
- end
- end
- end
- addEventHandler("onVehicleStartEnter", getRootElement(), onEnter )
- function onEnter2 (player, seat, jacker)
- if seat == 0 then
- local id = getElementModel ( source )
- if id == 490 or id == 407 or id == 544 then
- if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)),aclGetGroup("OSP")) then
- outputChatBox(player,"Ten pojazd należy do OSP. Nie możesz prowadzić tego pojazdu!")
- cancelEvent()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment