Guest User

Skrypt oskarYT

a guest
May 23rd, 2015
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1.  
  2. function onEnter (player, seat, jacker)
  3. if seat == 0 then
  4. local datauato = getElementData(source,"OSP")
  5. if datauato == true then
  6. if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)),aclGetGroup("OSP")) then
  7. outputChatBox(player,"Ten pojazd należy do OSP. Nie możesz prowadzić tego pojazdu!")
  8. cancelEvent()
  9. end
  10. end
  11. end
  12. end
  13. addEventHandler("onVehicleStartEnter", getRootElement(), onEnter )
  14.  
  15. function onEnter2 (player, seat, jacker)
  16. if seat == 0 then
  17. local id = getElementModel ( source )
  18. if id == 490 or id == 407 or id == 544 then
  19. if not isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)),aclGetGroup("OSP")) then
  20. outputChatBox(player,"Ten pojazd należy do OSP. Nie możesz prowadzić tego pojazdu!")
  21. cancelEvent()
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment