killouze 0 Posted June 6, 2010 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
terox 316 Posted June 6, 2010 (edited) 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 June 6, 2010 by Terox Share this post Link to post Share on other sites
killouze 0 Posted June 6, 2010 ok, thank you for the answer ;) Share this post Link to post Share on other sites
whisper 0 Posted June 7, 2010 As usual, I'm going for my shameless plug on serverSide scripting : Killouze, va voir ca : http://forums.bistudio.com/showthread.php?t=78674&highlight=serverside You can add a custom message on people connecting this way, by sending a code executed on client machine on connection or at mission start. Pretty usefull tool Share this post Link to post Share on other sites