Author Topic: Client sided function called when adding/removing a player from the player list  (Read 757 times)

I need the function called when adding players to the player list. I need to package it so it adds players to other lists.

Could you not build an automated command that functions the same way?

Don't get me wrong, this would be useful and more straightforward.



function newPlayerListGui::update(%this, %cl, %name, %BL_ID, %trust, %admin, %score)

function newPlayerListGui::update(%this, %cl, %name, %BL_ID, %trust, %admin, %score)

Use secureClientCmd_clientJoin instead.

Use secureClientCmd_clientJoin instead.
I used to but people seemed to freak out about the secureClientCmd part.

I used to but people seemed to freak out about the secureClientCmd part.

Why so? It just disallows servers from sending it unless the traceback involves an engine function or exec on a compiled file.

I need the function called when adding players to the player list. I need to package it so it adds players to other lists.
Use NewPlayerListGui::update, it's literally the exact function you're looking for.

It just disallows servers from sending it
This sounds kinda paranoid to me. It's not like its abusable or anything.

This sounds kinda paranoid to me. It's not like its abusable or anything.
It's one of the things that Badspot did along with removing the Player::setShapeName ability to prevent impersonation.

It's not like its abusable or anything.
It's one of the things that Badspot did along with removing the Player::setShapeName ability to prevent impersonation.
It seriously isn't abusable.

It seriously isn't abusable.

It allows you to add arbitrary entries to the playerlist.