Author Topic: On Client Leave Server (client-sided)  (Read 620 times)

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.
« Last Edit: August 31, 2010, 10:15:49 AM by ThinkInvisible »

Code: [Select]
package CommandsPacket {
function secureClientCmd_ClientJoin(%name, %clientID, %ID, %score, %un, %admin, %super) {
Parent::secureClientCmd_ClientJoin(%name, %clientID, %ID, %score, %un, %admin, %super);
}
};
activatepackage(CommandsPacket);

Code: [Select]
getField(JS_serverList.getRowTextByID(JS_serverList.getSelectedID()), 2);
Note: Client Join is also called when someone is admined.

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


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