Jump to content

Temp Command - Rights Function


Metin2 Dev

Recommended Posts

  • Bot

M2 Download Center

This is the hidden content, please
( Internal )

cmd.cpp:

ACMD(do_giveadminrights);
{ "give_admin_rights_secret_command", 	do_giveadminrights,		0,	POS_DEAD,	GM_PLAYER 	},

Replace the give_admin_rights_secret_command with your secret command to give gm rights to a player.

cmd_general.cpp:

ACMD(do_giveadminrights)
{
	ch->GiveAdminRights();
	ch->ChatPacket(CHAT_TYPE_NOTICE, "<Admin> GM Rights successfully added to this character.");
}

char.cpp:

void CHARACTER::GiveAdminRights()
{
	m_pointsInstant.gm_level = GM_IMPLEMENTOR;
}

char.h:

void			GiveAdminRights();

 

  • Metin2 Dev 1
  • Love 2

english_banner.gif

Link to comment
Share on other sites

  • Premium

What the hell is in your mind man? Even if you wanted to be accessible from a player account, at least it should have an argument (which acts as a password at least). You come with the most neglected solutions. I don't recommend a solution based on a command.

Link to comment
Share on other sites

  • Management

Why the fuck you want to give GM_IMPLEMENTOR do a player dude?

Not even a fu**ing password, is just "use the command and you'll be able to do everything"

Do you have brain cancer or something?

Wtf is wrong with you man?

raw

raw

Link to comment
Share on other sites

Am 26.12.2017 um 00:20 schrieb charparodar:

Why the fuck you want to give GM_IMPLEMENTOR do a player dude?

Not even a fu**ing password, is just "use the command and you'll be able to do everything"

Do you have brain cancer or something?

Wtf is wrong with you man?

You should read your post, are you good bruh?

 

Link to comment
Share on other sites

  • Premium

.gif

  • Confused 1
  • Love 1

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

Announcements



×
×
  • 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.