示例#1
0
int CSAMPFunctions::GetMaxNPC()
{
	// Call the function
	void *pConfig = (void *)CAddress::VAR_ConfigPtr;
	return pfn__CConfig__GetValueAsInteger(pConfig, "maxnpc");
}
示例#2
0
int CSAMPFunctions::GetMaxPlayers()
{
	// Call the function
	void *pConfig = *(void **)CAddress::VAR_ConfigPtr;
	return pfn__CConfig__GetValueAsInteger(pConfig, "maxplayers");
}