Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- #include "Chat.h"
- class rulescommand : public CommandScript
- {
- public:
- rulescommand() : CommandScript("rulescommand") { }
- ChatCommand* GetCommands() const
- {
- static ChatCommand IngameCommandTable[] =
- {
- { "rules", SEC_PLAYER, true, &HandleRulesCommand, "", NULL },
- { NULL, 0, false, NULL, "", NULL }
- };
- return IngameCommandTable;
- }
- static bool HandleRulesCommand(ChatHandler * handler, const char * args)
- {
- handler->PSendSysMessage("|cffB400B4TEST!");
- return true;
- }
- };
- void AddSC_rulescommand()
- {
- new rulescommand();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement