Newbie Spellweaver
- Joined
- Apr 5, 2024
- Messages
- 55
- Reaction score
- 1
Could someone help me with the /nofog command
I want it to save in the config.xml <NOFOG>TRUE</NOFOG>
it's working but it doesn't save in <NO FOG>TRUE</FOG>
I want it to save in the config.xml <NOFOG>TRUE</NOFOG>
C++:
void ChatCmd_NoFog(const char* line, const int argc, char **const argv)
{
ZGetConfiguration()->GetEtc2()->bNoFog = ((ZGetConfiguration()->GetEtc2()->bNoFog == false) ? true : false);
if (ZGetConfiguration()->GetEtc2()->bNoFog) {
ZChatOutput("^2Nofog ativado !", ZChat::CMT_SYSTEM);
}
else{
ZChatOutput("^1Nofog desativado !", ZChat::CMT_SYSTEM);
}return;
ZGetOptionInterface()->SaveInterfaceOption();
}
it's working but it doesn't save in <NO FOG>TRUE</FOG>
- Server Information
- gunz 1.5

