*Script*Randomspawn

Intended for use on live public servers.
3 posts Page 1 of 1
Bori
League Participant
League Participant
Posts: 28
Joined: Sun Nov 11, 2012 2:41 pm


HEy guys,

so after I have returned to AoS, I have decided to script again. Fist off all I want to say thank you to Morphman who helped me to get through this.

This script simply let the player spawn randomly. I recommend to turn off fall damage in the config because you would to a way too often.
Code: Select all
'''
Get Trolled by Bori by Bori but not by anone else
No just joking
Just random spawn
'''
from random import randint
from pyspades.constants import *
     
     
def apply_script(protocol, connection, config):
     
    class radomSpawnConnection(connection):
        def on_spawn(self, pos):
            x = randint(0,512)
            y = randint(0,512)
            z = randint(0,64)
            self.set_location((x, y, z))
            self.send_chat("You have Spawned radomly")
            return connection.on_spawn(self, pos)
     
    return protocol , radomSpawnConnection
Attachments
randomspawn.py
(600 Bytes) Downloaded 62 times
Jigsaw
3 Years of Ace of Spades
3 Years of Ace of Spades
Posts: 501
Joined: Fri Sep 27, 2013 11:41 am


nice bori :3
LeCom
Post Demon
Post Demon
Posts: 866
Joined: Sat May 24, 2014 8:07 am


It's a pretty small script. You could at least try protocol.map.get_z() instead of having players spawn inside blocks ;)
3 posts Page 1 of 1
Return to “Completed Releases”

Who is online

Users browsing this forum: No registered users and 1 guest