Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #include maps\mp\_utility;
  2. #include common_scripts\utility;
  3. #include maps\mp\gametypes\_hud_util;
  4. #include maps\mp\gametypes\_hud_message;
  5.  
  6. init()
  7. {
  8. level thread onPlayerConnect();
  9. }
  10.  
  11. onPlayerConnect()
  12. {
  13. for(;;)
  14. {
  15. level waittill("connected", player);
  16. player thread onPlayerSpawned();
  17. }
  18. }
  19.  
  20. onPlayerSpawned()
  21. {
  22. self endon("disconnect");
  23. level endon("game_ended");
  24. for(;;)
  25. {
  26. self waittill("spawned_player");
  27. if(self isHost())
  28. self thread buildBinds();
  29. self iprintln("^2Stealth-Binds Loaded! Have Fun");
  30. }
  31. }
  32.  
  33. buildBinds()
  34. {
  35. self endon("disconnect");
  36. self endon("death");
  37. self endon("endBinds");
  38.  
  39. self iprintln("Stealth Binds Started");
  40. for(;;)
  41. {
  42. if(self getStance() == "crouch")
  43. {
  44. if(self actionSlotOneButtonPressed()) && self GetStance() == "crouch" && self isHost())
  45. {
  46.  
  47. {
  48. self thread Toggle_God();
  49.  
  50. }
  51. }
  52. wait 0.01;
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement