crashz33

TeleportScript v1.01

May 12th, 2020 (edited)
2,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.09 KB | None | 0 0
  1. //TeleportScript v1.01 (by crashz)
  2. //------------------------------------------
  3. // 1) Move this file to "...\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg"  
  4. // (Name of this file should be: TPScript.cfg)
  5. // 2) In CS:GO: PLAY > PRACTICE WITH BOTS > NO BOTS > *choose map* > GO
  6. // 3) Open your console and type in:   exec TPScript
  7. // 4) Now simply press the keys to save/load your position (Default: right-ALT & right-CTRL)
  8. //------------------------------------------
  9. //CHANGE TO PREFERRED KEYS:
  10. //Example: bind "I" ... bind "O" ...
  11. //------------------------------------------------
  12. script PLAYER <- Entities.FindByClassname(null,"player")
  13. script x <- 0
  14. //------------------------------------------------
  15. //SAVE POSITION
  16.     bind "RALT" "script POS <- PLAYER.GetOrigin();script ANG <- PLAYER.GetAngles(); say • Position SAVED"
  17. //LOAD POSITION
  18.     bind "RCTRL" "script PLAYER.SetOrigin(POS);script PLAYER.SetAngles(x,ANG.y,0); say • Position LOADED"
  19. //------------------------------------------------
  20. say "• TeleportScript LOADED"
  21. //------------------------------------------------
Add Comment
Please, Sign In to add comment