FuveZeq 3 Posted December 26, 2022 Share Posted December 26, 2022 Hali Szeretném korlázozni a gm-ek kereskedéseit és egyebeit, próbáltam ezt a funkciót haszbálni.. de csődöt mondott, és valami hasonlóval szeretném megoldani mert ez egyszerübb Mit tudok tenni ez ügyben? //char.cpp add under BOOL CHARACTER::IsGM() const this BOOL CHARACTER::IsLowGM() const { return m_pointsInstant.gm_level > GM_PLAYER && m_pointsInstant.gm_level > GM_HIGH_WIZARD && m_pointsInstant.gm_level < GM_IMPLEMENTOR; } //char.h add under BOOL IsGM() const; this BOOL IsLowGM() const; Quote Link to post Share on other sites
SamuraiHUN 823 Posted December 27, 2022 Share Posted December 27, 2022 Alapjáraton van egy GetGMLevel funció. Használata: if (ch->GetGMLevel() > GM_PLAYER && ch->GetGMLevel() < GM_IMPLEMENTOR) { ch->ChatPacket(CHAT_TYPE_INFO, "Tesa gm vagy szal álljál le"); return false; } Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.