|
Adding the npc is simple enough, look at how it's loaded from the database when the server starts and replicate it for this (make sure to update local clients so they can see it)
Then once it's used, remove it from the loaded npcs and update clients again (or else it will still show ingame)
As for teleporting all players, do a foreach loop through all connected clients and then just say if their map == the one you want to tele from, teleport them to specified map/coords (you can always use some random coords or a spread so they aren't all stacked on 1 spot)
|