Guest User

Untitled

a guest
Oct 18th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2. #include "Chat.h"
  3.  
  4. class Event_Join : public PlayerScript
  5. {
  6.     public:
  7.         Event_Join() : PlayerScript("Event_Join") { }
  8.  
  9.     void OnChat(Player* player, uint32 type, uint32 lang, std::string msg)
  10.     {
  11.  
  12.         if (player->CanSpeak())
  13.         {
  14.             if (msg == "#join")
  15.             {
  16.                 player->TeleportTo(530, 6470.973145, -6524.695313, 44.842026, 1.475764);
  17.             }
  18.  
  19.         }
  20.              
  21.     }
  22. };
  23.  
  24. void AddSC_Event_Join()
  25. {
  26.     new Event_Join;
  27. }
Add Comment
Please, Sign In to add comment