Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ScriptPCH.h"
- #include "Chat.h"
- class Event_Join : public PlayerScript
- {
- public:
- Event_Join() : PlayerScript("Event_Join") { }
- void EventSystem(Player* player, const char * msg)
- {
- if (player->CanSpeak())
- {
- if (msg == "#join")
- {
- player->TeleportTo(530, 6470.973145, -6524.695313, 44.842026, 1.475764);
- }
- }
- }
- };
- void AddSC_Event_Join()
- {
- new Event_Join;
- }
Add Comment
Please, Sign In to add comment