Guest User

Untitled

a guest
May 20th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.73 KB | None | 0 0
  1. from twisted.internet.task import LoopingCall
  2. from commands import add
  3. from pyspades.constants import *
  4.  
  5. def apply_script(protocol, connection, config):
  6.     class djumpConnection(connection):
  7.         def on_login(self, name):
  8.             self.fly = True
  9.             return connection.on_login(self, name)
  10.         def on_spawn(self, pos):
  11.             for contained in connection.loader_recieved:
  12.                 if player.world_object.acceleration.z == 0:
  13.                     player.fly = True
  14.                 elif player.world_object.acceleration.z != 0:
  15.                     player.fly = False
  16.                 return connection.loader_recieved
  17.             return connection.on_spawn(self, pos)
  18.  
  19.     return protocol, djumpConnection
Add Comment
Please, Sign In to add comment