Azteco

Onlyvipzone

Jan 7th, 2014
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.60 KB | None | 0 0
  1. #include "ScriptPCH.h"
  2.  
  3. class Vip_Access: public PlayerScript
  4. {
  5.     public:
  6.         Vip_Access() : PlayerScript("Vip_Access") {}
  7.  
  8.     void OnUpdateZone(Player* player, uint32 /*newZone*/, uint32 /*newArea*/)
  9.     {
  10.         if (player->GetAreaId() == 1519 && player->GetSession()->GetSecurity() == SEC_PLAYER)
  11.         {
  12.         player->TeleportTo(0, -13328.414063f, 59.765587f, 24.107542f, 0.581469f);
  13.         ChatHandler(player->GetSession()).PSendSysMessage("|cffff6060[Information]:|r You are not allowed to be here, you aren't a VIP!|r!");
  14.         }
  15.     }
  16. };
  17.  
  18. void AddSC_Vip_Access()
  19. {
  20.     new Vip_Access();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment