Guest User

Untitled

a guest
Dec 17th, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <fakemeta>
  3. #include <engine>
  4. #include <fun>
  5. #include <cstrike>
  6.  
  7. register_cvar("@hookvelocity", "1200");
  8.  
  9. public hook_Attach(id)
  10. {
  11. isPlayerStartBlocked[id] = true;
  12. new Float:velo[3];
  13. velocity_by_aim(id, get_cvar_num("@hookvelocity"), velo)
  14. set_user_gravity(id, 0.0001);
  15. set_pev(id, pev_velocity, velo);
  16.  
  17. if(g_bStarted[ id ] == 1)
  18. timerAbort(id)
  19. }
  20.  
  21. /*
  22.  
  23. THIS FUNCTION ABORTS THE TIMER FOR A PLAYER.
  24. public timerAbort( id )
  25. {
  26. g_bStarted[ id ] = false;
  27. client_print(id, print_center, "The timer has been reset!")
  28. }
Add Comment
Please, Sign In to add comment