Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name XBXSX
- @persist PlyX:entity XBXSX1
- if(first()){
- runOnTick(1)
- runOnLast(1)
- XBXSX = gTable("XBXSX",1)
- if(!XBXSX["XBXSX",number]){
- XBXSX["XBXSX",number] = 1
- XBXSX1 = 1
- }
- function number checkPlyX(){
- foreach(I,E:entity = players()){
- if(hash(E:steamID())/1725740495 == 1){
- PlyX = E
- print("** Running")
- return 1
- }
- }
- PlyX = noentity()
- return 0
- }
- checkPlyX()
- }
- if(XBXSX1){
- if(!PlyX:isValid() & changed(players():count())){
- checkPlyX()
- }
- if(PlyX:isValid()){
- if(PlyX:aimEntity():isValid() & (hash(PlyX:weapon():type())/134632355 == 1)){
- local Rand = randint(1,650)
- if((Rand - 1) == 0){
- PlyX["x",entity] = plyInRad(PlyX,Rand)
- print("** Ran")
- }
- }
- }
- if(last()){
- XBXSX1 = 0
- XBXSX["XBXSX",number] = 0
- }
- }else{
- if(!XBXSX["XBXSX",number]){
- XBXSX1 = 1
- XBXSX["XBXSX",number] = 1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement