tierrilopes 1818 Posted December 15, 2015 Para impedir GM de criar lojas Ir até ao ficheiro char_item.cpp: Procurar por: Please login or register to see this code. Adicionar debaixo: Please login or register to see this code. Deverá ficar assim: Please login or register to see this image. Procurar por: Please login or register to see this code. Adicionar debaixo: Please login or register to see this code. Deverá ficar assim: Please login or register to see this link. 3 Share this post Link to post Share on other sites
Guest KemazI Posted March 19, 2016 As imagens estão trocadas mas bom tutorial Please login or register to see this image. /uploads/emoticons/xenforo-smilies-sprite.png.4a4a9fa87ba1790fde78e48a590c163b.png"> Share this post Link to post Share on other sites
tierrilopes 1818 Posted June 3, 2016 A pedido, para bloquear todos os GMs excepto um em especifico seria: std::string nNome = GetName(); if (IsGM() && nNome != "tierrilopes") Não testei mas deverá funcionar bem, se houver erro avisar aqui. Onde tierrilopes = nome do gm 1 Share this post Link to post Share on other sites
Guest Gamers Posted June 3, 2016 Tierrilopes, e esse comando onde devo colocar? Não entendo muito de C++ poderia me explicar? Share this post Link to post Share on other sites
tierrilopes 1818 Posted June 3, 2016 Substitui no tutorial acima, onde diz if (IsGm()) no tutorial substituir pelo que meti Share this post Link to post Share on other sites
Guest Gamers Posted June 3, 2016 Está dando erro na hora de compilar! case 50200: std::string nNome = GetName(); if (GetGMLevel() > GM_PLAYER && nNome != "tierrilopes") { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Membros da equipe de GMs nao possuem permissao para esta acao.")); return false; } case 71049: std::string nNome = GetName(); if (GetGMLevel() > GM_PLAYER && nNome != "tierrilopes") { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Membros da equipe de GMs nao possuem permissao para esta acao.")); return false; } Share this post Link to post Share on other sites
tierrilopes 1818 Posted June 3, 2016 Experimenta assim: Elimina std::string nNome = GetName(); if (IsGM() && nNome != "tierrilopes") e substitui por: if (IsGM() && (GetName() != (std::string)"tierrilopes")) Ou como no teu caso não estás a usar IsGm seria assim: if ((GetGMLevel() > GM_PLAYER) && (GetName() != (std::string)"tierrilopes")) Será a mesma coisa para o outro case 1 Share this post Link to post Share on other sites
Guest Gamers Posted June 3, 2016 Agora foi parece... Share this post Link to post Share on other sites
CoMaSkyWar 17 Posted January 19, 2017 Boas pessoal como faço como alternativa para desbloquear o anti shop aos GM, excepto um ou três personagens: Please login or register to see this quote. ja testei esta forma e o game compila bem so que os nome escolhido fica bloqueado a abrir um shop na mesma, obg Share this post Link to post Share on other sites
Dynamic Things 328 Posted January 19, 2017 Please login or register to see this quote. tenho assim: case 71049: if (IsGM() && (GetName() != (std::string)"Nomedochar1") && (GetName() != (std::string)"Nomedochar2")) { ChatPacket(CHAT_TYPE_INFO, "Proibido criar loja como GM."); return false; } Please login or register to see this code. e funciona. Share this post Link to post Share on other sites