Jump to content
  • 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 post

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



Chatroom Rules


Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules


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