EHDSeven

Untitled

Apr 6th, 2015
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. gunloop()
  2. {
  3. self endon("disconnect");
  4. self endon("player_killed");
  5.  
  6. While(1) {
  7. current = self getcurrentweapon();
  8.  
  9. if(current != "") {
  10. weapon1 = self getweaponslotweapon("primary");
  11. weapon2 = self getweaponslotweapon("primaryb");
  12.  
  13. if(current == weapon1)
  14. currentslot = "primary";
  15. else
  16. currentslot = "primaryb";
  17.  
  18. if(currentslot == "primary")
  19. {
  20. self detach("xmodel/" + weapon1, "");
  21. self notify("stopgunloopb");
  22. } else if(currentslot == "primaryb") {
  23. self detach("xmodel/" + weapon2, "");
  24. self notify("stopgunloopa");
  25. }
  26. }
  27. wait 0.05;
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment