Jump to content

sending the command by the server


Recommended Posts

Hello, how to write a function that, after doing something, the server will type the command like a game master?

i tried to do via chatpacket: CHAT_TYPE_COMMAND - but on the server the command does not enter / syslog / syser works fine

I want the server to just type any administrator command when a player does something forbidden. But I don't know how to get started and all chatpacket won't work

 

Examples: 

	if (!pkSafebox || !pkItem)
	{
		ch->ChatPacket(CHAT_TYPE_INFO, "Test the message");
		ch->ChatPacket(CHAT_TYPE_COMMAND, "hbann_hwid %s", GetName());
		sys_err("TEST %s", ch->GetName());
		return;
	}

 

Edited by santa12
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.