Jump to content

Contador de players


igoriap
 Share

Recommended Posts

Honestamente não te sei dizer como fazer isso a 100%, mas podes te basear no comando /w para obter os dados:

Spoiler

ACMD(do_who)
{
	int iTotal;
	int * paiEmpireUserCount;
	int iLocal;

	DESC_MANAGER::instance().GetUserCount(iTotal, &paiEmpireUserCount, iLocal);

	ch->ChatPacket(CHAT_TYPE_INFO, "Total [%d] %d / %d / %d (this server %d)", 
			iTotal, paiEmpireUserCount[1], paiEmpireUserCount[2], paiEmpireUserCount[3], iLocal);
}

 

Desculpa não saber ajudar mais, boa sorte.

Abraço

Edited by oserra
Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...