BackPlayer 55 Posted June 11, 2016 Share Posted June 11, 2016 How can i block GM open the safebox i try this but cuz i am very noob yet i have a error on compile. char.cpp Spoiler void CHARACTER::ReqSafeboxLoad(const char* pszPassword) { // LPCHARACTER tch; // if(tch->GetGMLevel() > GM_PLAYER) // { // ch->ChatPacket(CHAT_TYPE_INFO, "You can not open the Safebox!"); // return; // } plz help me thanks in advance! Link to comment Share on other sites More sharing options...
ManiacRobert 429 Posted June 11, 2016 Share Posted June 11, 2016 First loop add // Link to comment Share on other sites More sharing options...
Premium tierrilopes 453 Posted June 11, 2016 Premium Share Posted June 11, 2016 void CHARACTER::ReqSafeboxLoad(const char* pszPassword) { if (!*pszPassword || strlen(pszPassword) > SAFEBOX_PASSWORD_MAX_LEN) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<â°í> À߸øµÈ ¾ÏÈ£¸¦ ÀÔ·ÂÇϼ̽À´Ï´Ù.")); return; } else if (IsGM()) { ChatPacket(CHAT_TYPE_INFO, "Proibido mover itens para o armazem como GM."); return; } 1 Link to comment Share on other sites More sharing options...
BackPlayer 55 Posted June 12, 2016 Author Share Posted June 12, 2016 thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now