Blockland Forums > Modification Help

On Client Leave Server (client-sided)

Pages: (1/1)

ThinkInvisible:

I need a piece of code or a function, client not server, that tells when the user of the script joins or leaves.

Please do tell, kthx.

Ninjedit : Can i also know how to find the servername upon joining a server? Kthx.


Done with all that, now i need to know:

Quote, MegaScientifical in below post, of code:
getField(JS_serverList.getRowTextByID(JS_serverList.getSelectedID()), 2);

Okay, how would i get that to show the servername with the server's HOST before it?
right now, that just returns 'freebuild' or 'TDM' instead of 'asdfs freebuild' or 'AHaxors TDM'  (Sorry if these are actual blocko names, i just picked random things out of my mind.)

Also, what you said below is for JOINING the server - i need leaving too.

EDDIT : Can i also know how to scan a string for a specific variable? Right now, it's on a nonworking While variable set up rather badly.

MegaScientifical:


--- Code: ---package CommandsPacket {
function secureClientCmd_ClientJoin(%name, %clientID, %ID, %score, %un, %admin, %super) {
Parent::secureClientCmd_ClientJoin(%name, %clientID, %ID, %score, %un, %admin, %super);
}
};
activatepackage(CommandsPacket);
--- End code ---


--- Code: ---getField(JS_serverList.getRowTextByID(JS_serverList.getSelectedID()), 2);
--- End code ---

Note: Client Join is also called when someone is admined.

ThinkInvisible:

er... does one of those get the servername?

MegaScientifical:

Second one.

ThinkInvisible:

Bump - content of first post reset, i need moar help.

Pages: (1/1)

Go to full version