Jump to content
robbyj

How to display player count on your server

Recommended Posts

hello @robbyj Possible add reserved slot?

> define number reserved slot

> define personal message when player is kick

 

> same rcon with battlemetrics !

have a good day

Share this post


Link to post
Share on other sites

so how would i set it to show player kills to player a killed player b

Share this post


Link to post
Share on other sites
On 10/15/2018 at 7:37 AM, BR_ASGARD said:

hello @robbyj Possible add reserved slot?

> define number reserved slot

> define personal message when player is kick

 

> same rcon with battlemetrics !

have a good day

With BEC you can do that!

Share this post


Link to post
Share on other sites
On 10/4/2018 at 12:37 AM, Mizev said:

It's complicated. There is a simpler method.

 

zQRTWZq4KLM.jpg

 

Add the script to a file:

..\DayZServer\mpmissions\dayzOffline.chernarusplus\init.c

 


	override void OnInit()
	{

		GetGame().GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLater(NumPLayersOnServer, 30000, true);		// 30 seconds
	}
	
	void NumPLayersOnServer()
	
	{
		ref array<Man> players = new array<Man>;
		GetGame().GetPlayers( players );
		int numPlayers = players.Count();
		
		for ( int i = 0; i < players.Count(); ++i )
		{
			Man player = players.Get(i);
			if( player )
			{
				string messPlayers = "Players on the server: " + numPlayers.ToString();
				Param1<string> m_MessageParam = new Param1<string>(messPlayers); 
				GetGame().RPCSingleParam(player, ERPCs.RPC_USER_ACTION_MESSAGE, m_MessageParam, true, player.GetIdentity()); 

			}
		}
		
	}
	

 

znUdrLcPrk4.jpg


        

    

Nice job brow!!!
Thanks!!! I will try it on my server! 😃

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

×