This Will Simply Announce "[Player Name] Needs Gm assistance." When a player types #Help.
note: You deffrently might want to up the flood control on this one =D.
PlayerAssistance.cpp:
Setup.h:Code:#include "StdAfx.h" #include "Setup.h" static string food = "#Help"; void PlayerAssistance(Player* plr) { if(Message == help) { plr->BroadcastMessage("%s Needs Gm Assistance!", plr->GetName() } void SetupPlayerAssistance(ScriptMgr * mgr) { mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, (void*)PlayerAssistance); }
Not tested. And errors Say. I have to go/sleep >.>Code:#ifndef INSTANCE_SCRIPTS_SETUP_H #define INSTANCE_SCRIPTS_SETUP_H void SetupPlayerAssistance(ScriptMgr * mgr); #endif
Edit: Changed to release


Likes: 




Reply With Quote
StickyIcky



Bookmarks