[Pyspades] Executing a ingame command on player join

Installation support, coding tips, and general tutorials.
2 posts Page 1 of 1 First unread post
Meymey
Deuce
Posts: 2
Joined: Fri Jan 25, 2019 2:05 pm


Hey so ive setup a server with pyspades and bots but since the bots need to be automatically added each game im wondering if there is a away to either execute the /addbot command automatically or use a function in the bot script im very new to python coming from c++ but have been looking around trying to use the on_connect function but cant seem to get it working anyone have any ideas

pseudo code or anything info trying to make this work is appreciated
notafile
Deuced Up
Posts: 72
Joined: Sat Sep 09, 2017 3:20 pm


Hi, pypsades hasn't been updated since around 2012. Please use https://github.com/piqueserver/piqueserver.

You will want to hook the on_login hook in your plugin. You can look at other plugins e.g. https://github.com/piqueserver/piqueser ... e2.py#L236 to see how it's done.
2 posts Page 1 of 1 First unread post
Return to “Help!”

Who is online

Users browsing this forum: No registered users and 5 guests