Jump to content

[C++]Block SafeBox on GM


Recommended Posts

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

  • Premium
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;
	}
  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.