13.03.2018, 15:41
Simple script, which helps you to notify players about something.
How to use?
Script moves your text from (x,y) to (x,y - 1000).
Also, you can use new event onNotificationEnd(id). For example:
Demonstration
Download
Script: pastebin.
Script for tests (from video): pastebin.
How to use?
Code:
local myNotification = Notification(id,text,font,r,g,b,x,y)
For example
local myNotification = Notification(0,"Gothic 2 Online","Font_Old_10_White_Hi.TGA",255,255,0,2000,2000);
Script moves your text from (x,y) to (x,y - 1000).
Also, you can use new event onNotificationEnd(id). For example:
Code:
function onNotificationEnd(id) {
print("My notification " + id + " is ended.");
}
addEventHandler("onNotificationEnd",onNotificationEnd);
Demonstration
Download
Script: pastebin.
Script for tests (from video): pastebin.