
Results 1 to 6 of 6
Thread: Player-Help Command
-->
-->
Threaded View
-->
-
08-09-08, 02:27 PM #1
Player-Help Command
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:
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); }
Code:#ifndef INSTANCE_SCRIPTS_SETUP_H #define INSTANCE_SCRIPTS_SETUP_H void SetupPlayerAssistance(ScriptMgr * mgr); #endif
Edit: Changed to release
Last edited by StickyIcky; 09-09-08 at 11:17 AM.
Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread
Visitors found this page by searching for:
Nobody landed on this page from a search engine, yet!
SEO Blog