Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. script_name("Collision")
  2.  
  3. function main()
  4. repeat wait(0) until isSampAvailable()
  5. sampAddChatMessage("Collision load", 0xFFFFFF)
  6. sampRegisterChatCommand('col',cmd)
  7. while true do wait(0)
  8. if Activate then
  9. res, car = storeCarCharIsInNoSave(playerPed)
  10. if res then
  11. setCarCollision(car, true)
  12. Activate = false
  13. end
  14. end
  15. end
  16. end
  17.  
  18. function cmd()
  19. Activate = not Activate
  20. if Activate then
  21. sampAddChatMessage("Enable", - 1)
  22. else
  23. sampAddChatMessage("Disable", - 1)
  24. end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement