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