![]() |
Observer Mode - Occupy Players
Introduction
I wrote a little script for Vesporia which does this: 1) When players are about to go on observer mode, warps them to a level 2) In that level, displays a rotating list of images This removes observers from the main levels as to not disturb events, etc, and adds them to the level. They are then shown any images you have uploaded to a certain folder. Creating the Folder I created a folder called PHP Code:
PHP Code:
PHP Code:
Now, upload as many image files as you want into the folder you created. You can upload PNGs, MNGs, GIFs, and JPGs. I added 10-20 'motivator' images to the folder. These images will be shown to players on observer mode. Remember, inappropriate images will most likely get you in trouble -BANHAMMA-. Script Create a new database NPC called "GlobalShopControl". You must name it this, because this is the npc that gets called. In this database NPC, add this code. PHP Code:
Now, make a class called "class_observer" (or anything else you want). In that class, add this script: PHP Code:
To change the folder, change PHP Code:
PHP Code:
PHP Code:
Now, you need to make a level. Name it whatever you named the level in the "GlobalShopControl" NPC. In this level, at ( 0, 0 ) put a level NPC with this code: PHP Code:
Demo -- Comments and criticisms please! :) |
I'd rather have server related stuff (i.e rules, commands, background story etc) displayed in the level then 4chan stuff...
Not a huge fan of your styling, it differs too much from my own (personal opinion ftw), but the idea behind it is quite nice. Rep ++! |
Hmm, what does this script do when a player enters the server in observer mode? (Ie they are in observer mode when they logon)
Will the script still keep them in the level? :o PS: TServerPlayer.isobserver Just a small suggestion to your script :) |
Quote:
Sorry it took a while to respond, completely forgot about this thread ;o |
Quote:
|
| All times are GMT +2. The time now is 05:59 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.