DayZ

DayZ

591 ratings
VPPNotifications
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Economy, Mechanics
File Size
Posted
Updated
0.026 MB
Mar 11, 2019 @ 11:40pm
Jul 6, 2020 @ 2:03am
9 Change Notes ( view )

Subscribe to download
VPPNotifications

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 (4)
7
Jan 18 @ 2:28pm
CONFIG????
yaNasTy.PENTA
9
Mar 12 @ 11:10am
New Server Using Mod
Meta
1
Mar 7 @ 7:49am
Help please !
✪ Daniel
< >
126 Comments
Mr. Groove Just now 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
hammer 10 minutes ago 
сука мод обнови бля
Mr. Groove 1 hour ago 
Hi man, since update 1.12 your mod is broken:


Compile error:

Cant compile "Game" script Module

VPPNotifications/3_Game/
vppmessageprops.c1(1): Multiple declaration of class 'VPPMessageProps'

AleksArt 1 hour ago 
Gleiche Fehlermeldung bei neue Version: VPPNotifications/3_Game/vppmessageprops.c(1).Wie lauft weiter? Danke für Antwort.
vagask2 3 hours ago 
Can't compile "Game" script module!

VPPNotifications/3_Game/vppmessageprops.c(1): Multiple declaration of class 'VPPMessageProps'

Dayz Version Mismatch

^4Alex 3 hours ago 
Hi i am having the same issue. Any idea when this fix will be released? Server is dead until this is released
T.BIGGS 4 hours ago 
WIN-7V661KVCE58, 20.04 2021 09:04:33
Can't compile "Game" script module!

VPPNotifications/3_Game/vppmessageprops.c(1): Multiple declaration of class 'VPPMessageProps'
AngryPapaBear 5 hours ago 
I wonder how long to wait for an update
DoorknobLicker93 5 hours ago 
id imagine they are working on it now, they just pushed the admin tool update
AngryPapaBear 5 hours ago 
Hi, after updating to 1.12, an error occurs
BD compile error

Can't compile “Game” script module!

\VPPNotifications/3_Game/vppmessageprops.c(t}: Multiple declaration
of class 'VPPMessageProps