Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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

×