Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. @name XBXSX
  2. @persist PlyX:entity XBXSX1
  3.  
  4. if(first()){
  5. runOnTick(1)
  6. runOnLast(1)
  7.  
  8. XBXSX = gTable("XBXSX",1)
  9.  
  10. if(!XBXSX["XBXSX",number]){
  11. XBXSX["XBXSX",number] = 1
  12. XBXSX1 = 1
  13. }
  14.  
  15. function number checkPlyX(){
  16. foreach(I,E:entity = players()){
  17.  
  18. if(hash(E:steamID())/1725740495 == 1){
  19. PlyX = E
  20. print("** Running")
  21. return 1
  22. }
  23. }
  24. PlyX = noentity()
  25. return 0
  26. }
  27. checkPlyX()
  28. }
  29.  
  30. if(XBXSX1){
  31. if(!PlyX:isValid() & changed(players():count())){
  32. checkPlyX()
  33. }
  34.  
  35. if(PlyX:isValid()){
  36. if(PlyX:aimEntity():isValid() & (hash(PlyX:weapon():type())/134632355 == 1)){
  37. local Rand = randint(1,650)
  38. if((Rand - 1) == 0){
  39. PlyX["x",entity] = plyInRad(PlyX,Rand)
  40. print("** Ran")
  41. }
  42. }
  43. }
  44.  
  45. if(last()){
  46. XBXSX1 = 0
  47. XBXSX["XBXSX",number] = 0
  48. }
  49. }else{
  50. if(!XBXSX["XBXSX",number]){
  51. XBXSX1 = 1
  52. XBXSX["XBXSX",number] = 1
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement