Jump to content
  • Create New...
  • 0

sending the command by the server



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



	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());


Edited by santa12
Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

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.