Hey guys,
today I made something similar like the say2() command for
Shaded Legend. Itīs nothing special and I didnīt spend that much time on this. Basicly I first of wanted to try having it look like on Atlantis but for now this was ok aswell for me

. If you use it you might want to change some things (as example the layout).
How you can change the layout:
- You can change the background image by changing the layout_imageīs filename. The width of the GUI is related to the images width so make sure your image got the correct size.
- You can change the backgrounds alpha by changing the layout_alpha
- How fast the text will appear can be setted with the text_speed
- The text below the GUI can be changed by editing text_a and text_s
- In line 45 you can change the fontcolor.
- I attached the background image I used for this. Feel free to use it.
It is right this part
PHP Code:
const layout_image = "callimuc_say3background.png";
const layout_alpha = 0.8;
const text_speed = 0.1;
const text_a = "A - Close";
const text_s = "S - Scroll to bottom";
and
PHP Code:
profile.fontcolor = {
61,23,0,225
};
How you can use this:
This is just a really simple example:
- Create a class called function_say3
- Put this into the NPC you want to use this on. Just touch it than
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.join("function_say3");
}
function onPlayerTouchsMe() {
this.say3("Hello this is your new sign!");
}
- For weapons you could use this and just fire the weapon than
PHP Code:
//#CLIENTSIDE
function onCreated() {
this.join("function_say3");
}
function onWeaponFired() {
this.say3("Hello this is your new message!");
}
Here you can find the script:
http://pastebin.graalcenter.org/read...d=102062213349
For those of you using a custom movement keep that there is
enabledefmovement (line 101) and
disabledefmovement (line 17) used. You should fit that with your movement than.
Well I donīt think there is that much more to say. If you have any suggestions or if there is anything bugged feel free to tell me.