Jump to content
Sign in to follow this  
killouze

onUserConnected + message

Recommended Posts

Hi, I would like to know how to display a custom message when a player is joining our game server.

Of course, we have already messages but I will like to add a warning if the needed mod/addons version(s) are wrong ones.

I had tested this but it does not work :

onUserConnected = "server globalChat format['Bienvenue au joueur %1',(_this select 0)];";

Have you any idea?

Share this post


Link to post
Share on other sites

The statement is executed only on the server, not on the joining player's computer, nor on any other client.

More importantly, if the addons/mods you are running use OnPlayerConnected, your OnPlayerconnected command will overwrite theirs, so wherever possible you should refrain from using such command

Think of this command as a global variable command, it can only have 1 value and the last stated value is the one the server will run

The only realistic options are the MOTD and add the addon requirements to your Gamespy Server title.

Having done all that, you would then need the player to read the information available in the browser, which is highly unlikely

No perfect answer for this unfortunately

Edited by Terox

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×