Guest User

Untitled

a guest
Jul 15th, 2012
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. /* Small C++ script, credits to AuxProductions. */
  2.  
  3. #include "StdAfx.h"
  4. #include "Setup.h"
  5.  
  6.  
  7. #ifdef WIN32
  8. #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
  9. #endif
  10.  
  11.  
  12.  
  13.  
  14. void OnFirstEnterWorld(Player * pPlayer)
  15. {
  16. char message[500];
  17. sprintf(message, "[SERVERNAME] Welcome our new player, %s to the server!", pPlayer->GetName());
  18. sWorld.SendWorldWideScreenText(message);
  19. }
  20.  
  21.  
  22.  
  23. void SetupOnFirstEnterWorld(ScriptMgr * mgr)
  24. {
  25. mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, OnFirstEnterWorld);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment