Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- class cmd_chat : public CommandScript
- {
- public:
- cmd_chat() : CommandScript("cmd_chat") { }
- ChatCommand * GetCommands() const
- {
- static ChatCommand chatCommandTable[] =
- {
- { "chat", SEC_PLAYER, false, &HandleChatCommand, " ", NULL },
- { NULL, 0, false, NULL, " ", NULL }
- };
- return chatCommandTable;
- }
- static bool HandleChatCommand(ChatHandler * handler, char const * args)
- {
- Player * player = handler->GetSession()->GetPlayer();
- player->GetSession()->SendAreaTriggerMessage("Chat");
- return true;
- }
- };
- void AddSC_cmd_chat()
- {
- new cmd_chat;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement