Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 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. }
  30. }
  31.  
  32. buildBinds()
  33. {
  34. self endon("disconnect");
  35. self endon("death");
  36. self endon("endBinds");
  37.  
  38. self iprintln("Stealth Binds Started");
  39. for(;;)
  40. {
  41. if(self getStance() == "crouch")
  42. {
  43. if(self actionSlotOneButtonPressed())
  44. {
  45.  
  46. }
  47. }
  48. wait 0.01;
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement