rice2k

SK-Staff Player Detector

Jun 15th, 2021
762
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // NPC made by Shadow Knight
  2. if (playertouchsme) {
  3. toweapons Staff/SK-Staff Player Detector;
  4. say2
  5. This player detector#b
  6. detects players in the#b
  7. level and places a image#b
  8. on them, it will only show#b
  9. an image on a player not a#b
  10. npc, this is helpful at#b
  11. finding invisble people.#b
  12. }
  13. if (weaponfired) {
  14. if (detectoron) {
  15. unset detectoron;
  16. }
  17. else if (! detectoron) {
  18. set detectoron;
  19. timeout=.05;
  20. }
  21. }
  22. if (timeout) {
  23. if (detectoron) {
  24. while (this.img>200) {
  25. hideimg this.img;
  26. this.img --;
  27. }
  28. for (this.player=1;this.player<playerscount;this.player++) {
  29. this.img=this.player+200;
  30. if (players[this.player].id>=0&&players[this.player].id<1000) {
  31. showimg this.img,opps.png,players[this.player].x,players[this.player].y;
  32. changeimgpart this.img,0,181,45,50;
  33. }}
  34. timeout=.05;
  35. }
  36. if (! detectoron) {
  37. while (this.img>200) {
  38. hideimg this.img;
  39. this.img --;
  40. }}
  41.  
RAW Paste Data