santa12 4 Posted February 7, 2021 Share Posted February 7, 2021 (edited) 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 February 7, 2021 by santa12 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now