•  
     

2S_SERVERQUERY_GETCHALLENGE - HLDS Stats

Código: Selecionar todos

function getQuery($queryType) {
	switch($queryType)
	{
		case "A2S_SERVERQUERY_GETCHALLENGE":
		return "\xFF\xFF\xFF\xFF\x55\xFF\xFF\xFF\xFF";
		break;
		case "A2S_INFO":
		return "\xFF\xFF\xFF\xFFTSource Engine Query\x00";
		break;
		case "A2S_PLAYER":
		return sprintf("\xFF\xFF\xFF\xFF\x55%s", $this->getChallenge());
		break;
		}
	}


A2S_INFO

Código: Selecionar todos

\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00


Código: Selecionar todos

details = \xFF\xFF\xFF\xFFdetails\x00
players = \xFF\xFF\xFF\xFFplayers\x00
rules = \xFF\xFF\xFF\xFFrules\x00
infostring = \xFF\xFF\xFF\xFFinfostring\x00


Código: Selecionar todos

\377\377\377\377TSource Engine Query\0