Jump to content

Handling join/quit at Race resource (_joiner.lua)


Recommended Posts

Hey guys,

Currently I'm trying to find out how to remove players from the Race gamemode.

What I would like to achieve is making it possible to remove players from the race resource when it asks for removal, plus some delay of joining at start(log-in menu shows up at start)

_joiner.lua 'says' that onPlayerJoin sends the player to the joining group, so I changed that event name to the event I use in an other script for importing the player into race.

I've also tried patching the four functions. Paste: http://pastebin.com/X6hmZRUz

(exports.uag_RacePlayers:getRacePlayers returns a table of the players that 'should' be in the race gamemode.)

Furthermore, I also edited onlyJoined(), changing g_Root => g_RootPlayers

But when running all these edited lines, it just runs like a normal race gamemode.

If someone knows how to make this possible, please tell me. ^^

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...