char* MapName = (char*)0x08F11F8;
if( MapName = "mp_rust" ) {
SendCommandToConsole("say ^3NEXT MAP IS WASTELAND");
} else if( MapName == "mp_highrise") {
SendCommandToConsole("say ^3CURRENT MAP IS HIGHRISE");
} else if( MapName == "mp_boneyard") {
SendCommandToConsole("say ^3CURRENT MAP IS SCRAPYARD");
}
// AlterIW: CGS_T - 0x7F0C78
// Steam: CGS_T - 0x7F1CF8
char mapName[64];
int addy_mapName = 0x7F0C78 + 0x14C;
for(int i = 0; i < 64; i++)
mapName[i] = (char)(addy_mapName + i);
// Some craps like that, there's probably a better way to read
// an array on an injected DLL
char* MapName = (char*)0x08F11F8;
if (strcmp(MapName,"mp_rust") == 0 ) {
SendCommandToConsole("say ^3NEXT MAP IS WASTELAND");
} else if (strcmp(MapName,"mp_highrise") == 0 ) {
SendCommandToConsole("say ^3CURRENT MAP IS HIGHRISE");
} else if (strcmp(MapName,"mp_boneyard") == 0 ) {
SendCommandToConsole("say ^3CURRENT MAP IS SCRAPYARD");
}