Likes: 0
Results 1 to 2 of 2
Thread: Player Commands
-
02-08-08, 05:05 PM #1
Player Commands
Register to remove this adCode://--------------------- // Name: Player Commands // Author: WigSplitta //--------------------- #include "StdAfx.h" #include "Setup.h" #define map Insert Map ID Here #define x Insert X Coords Here #define y Insert Y Coords Here #define z Insert Z Coords Here #define o Insert Orientation Here #ifdef WIN32 #pragma warning(disable:4305)// warning C4305: 'argument' : truncation from 'double' to 'float' #endif //If set to true, will enable players to #event while in combat static bool bypassCombat = false; static string mall = "#mall"; void PlrCom(Player * Plr, uint32 Type, uint32 Lang, const char * Message, const char * Misc) { if(Message == mall) { if(Plr->IsPvPFlagged()) { Plr->BroadcastMessage("You can't be PVP Flagged when porting to the mall."); } else { if(Plr->CombatStatus.IsInCombat()) { Plr->BroadcastMessage("You can't port while in combat."); } else { Plr->EventTeleport(map, x, y, z); Plr->SetOrientation(o); } } } } void SetupPlayerCommands(ScriptMgr * mgr) { mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &PlrCom); }
› See More: Player Commands
-
02-08-08, 11:30 PM #2
- Rep Power
- 17
- Reputation
- 11
Register to remove this adThis is cool, now i can make more comamnds .. GJ +3 rep
Did u make it or Copy it?
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