DayZ
237 ratings
VPPNotifications
 
Rate  
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Economy, Mechanics
File Size
Posted
Updated
0.030 MB
Mar 11, 2019 @ 11:40pm
Sep 30, 2019 @ 6:32am
8 Change Notes ( view )

Subscribe to download
VPPNotifications

Subscribed
Unsubscribe
In 1 collection by DaOne
[V++] VPPDeathmatch [54.39.130.144:2302]
8 items
Description
Notification framework designed to send messages to players on the server globally and or individually.

Usage:
g_Game.SendMessage(false,identity,"Server Login:","Welcome "+identity.GetName() + ", enjoy your stay!",10,2,false,true,"",0,0);

Execute that code anywhere server side:
Example:
override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE"); Class.CastTo(m_player, playerEnt); g_Game.SendMessage( false, identity, "Server Login:", "Welcome "+identity.GetName() + ", enjoy your stay!", 10, 2, false, true, "", 0, 0); GetGame().SelectPlayer(identity, m_player); return m_player; }

Example Welcome message on player join/respawn:
override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity) { super.InvokeOnConnect(player, identity); g_Game.SendMessage( false, identity, "Server Login:", "Welcome "+identity.GetName() + ", enjoy your stay!", 10, 2, false, true, "", 0, 0); }

Example With Image:
g_Game.SendMessage( false, identity, "Server Login:", "Welcome "+identity.GetName() + ", enjoy your stay! Please make sure to read our rules!", 10, 2, false, true, "set:dayz_gui image:DayZLogo", // Imagesets 512, 156); If you wish to not use imagesets, you could directly load a PAA however, image may look poor in quality Example Path --> "VanillaPPMap\\scripts\\GUI\\Textures\\CustomMapIcons\\waypointeditor_CA.paa" //Direct .PAA

Paramters:
g_Game.SendMessage( bool Global, PlayerIdentity receiver , string messageTitle, string message, int duration, int fadeTime, bool skipQueue, bool doFadeIn, string imagePath, float ImageSizeX, float ImageSizeY);

Notes: if you wish to send a global message, make sure to set the first param to
true
and the second param as
NULL

If you wish to not use an image with the notification, simply leave the string empty as shown in the example above.


Please Rate the mod, comment your issues below and i will try to find time and help you :)
Popular Discussions View All (2)
2
Mar 19 @ 12:57pm
New Server Using Mod
Meta
0
Mar 9 @ 10:45pm
douglas
SURDO Douglas REI
< >
73 Comments
xXSabot3urXx Mar 20 @ 11:52am 
Hey ho, which value I have to set, that the Welcome Message stays 20 seconds on the screen after player join ? Thx
Jay8454 Mar 9 @ 8:48am 
DaOne that means I took the blue pill, back you work tomorrow :-( Thanks I just got it to work now I gotta learn how it works and use it I am just a mountain learning curve kinda guy.
DaOne  [author] Mar 9 @ 4:30am 
Hey! I wish i was Neo lol, yes this mod is used by VPPAdminTools as a messaging system. It is required or else your server won't startup. All mods should be on both ends, client and server.
Jay8454 Mar 9 @ 1:50am 
Hey DaOne, or should I call you Neo?? ;-/ This is to be installed with your VPPADMINTOOLS?
The VPPAdminTools work server side? Because Offline Mode stopped loading saves scripts looking for a possible alternatives to add cool stuff to the map.
DaOne  [author] Mar 6 @ 5:56pm 
Not possible, unfortunately.
CheoCubes Mar 6 @ 11:31am 
Is there a way to send a message on logout? Ive tried InvokeOnDisconnect but it didn't seem to work so i wasn't sure if it was possible or not.
DaOne  [author] Dec 29, 2019 @ 6:04am 
No, you can't :/

Its a feature i wish to implement in the future. In the mean time, you can use the message system from the game, messages.xml in your mission folder
slv` | www.dayz-tlb.com/discord/ Dec 29, 2019 @ 4:48am 
Hi, is there a way to use this mod on scheduled messages on the server? If yes, how?
[REVO] Mosta Dec 10, 2019 @ 6:13am 
not yet ypdated 1.06 ? or its work ?
ServerAtze Nov 13, 2019 @ 9:42am 
Your mod was packed in a another modpack.

https://steamcommunity.com/sharedfiles/filedetails/?id=1912121711