Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Small C++ script, credits to AuxProductions. */
- #include "StdAfx.h"
- #include "Setup.h"
- #ifdef WIN32
- #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
- #endif
- void OnFirstEnterWorld(Player * pPlayer)
- {
- char message[500];
- sprintf(message, "[SERVERNAME] Welcome our new player, %s to the server!", pPlayer->GetName());
- sWorld.SendWorldWideScreenText(message);
- }
- void SetupOnFirstEnterWorld(ScriptMgr * mgr)
- {
- mgr->register_hook(SERVER_HOOK_EVENT_ON_FIRST_ENTER_WORLD, OnFirstEnterWorld);
- }
Advertisement
Add Comment
Please, Sign In to add comment