DayZ
Notifications
 This topic has been pinned, so it's probably important
BRITTO  [developer] 7 Jan, 2021 @ 11:55pm
Welcome Message
Adding to the init.c under StartingEquipSetup

GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(NotificationSystem.SimpleNoticiation, 1000, false , "Welcome to You're Not Ready Gaming, if you have any questions just ask them in chat with a `?` our AI Chat Bot *Dave* will respond to the best of his ablity, you can also join our discord, (discord.gg/SkUkPv4) to learn more and provide feedback\n\nGood Luck and Have Fun!", "Welcome", "Notifications/gui/data/notifications.edds", ARGB(240, 90, 140, 195), 30, player.GetIdentity());

Here a printscreen

https://i.imgur.com/PJjKUUe.png
Last edited by BRITTO; 7 Jan, 2021 @ 11:59pm
< >
Showing 1-10 of 10 comments
Omar kaleb 2 Feb, 2021 @ 12:32pm 
Good evening, can you screen me the exact location or insert the line of code please. best regards
Infinite_1st 25 Feb, 2021 @ 4:37am 
not working
Ghosttown.TTV 15 Mar, 2021 @ 4:36pm 
Unless we are all doing it wrong, That is not working for me either.
M3TVL 27 May, 2021 @ 12:39am 
hey TH, Im not sure what im doing wrong, so message works, only thing is that when someone joins it prompts the welcome for me aswell.
DaemonForge  [developer] 3 Jun, 2021 @ 11:42am 
There is a slightly better meahtod
override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity) { // Don't leave out the super (super important super.InvokeOnConnect( player, identity); GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(NotificationSystem.SimpleNoticiation, 1000, false , "Welcome to {XYZ}, Check out our Server Information by Pressing PAUSE/BREAK or by Pressing ESC and Clicking Server Panel. Feel free to join our Discord", "Welcome Survivors", "Notifications/gui/data/notifications.edds", ARGB(240, 90, 140, 195), 30, identity); }
M3TVL 9 Jun, 2021 @ 6:00pm 
thanks man
WarGeek07 19 Aug, 2021 @ 9:21am 
I noticed and issue with this code:


Originally posted by DaemonForge:
There is a slightly better meahtod
override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity) { // Don't leave out the super (super important super.InvokeOnConnect( player, identity); GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(NotificationSystem.SimpleNoticiation, 1000, false , "Welcome to {XYZ}, Check out our Server Information by Pressing PAUSE/BREAK or by Pressing ESC and Clicking Server Panel. Feel free to join our Discord", "Welcome Survivors", "Notifications/gui/data/notifications.edds", ARGB(240, 90, 140, 195), 30, identity); }

One, were exactly in the init.c file do we put this code? Also when this code is put after the StartingEquipSetup block it works but causes BBP doors to glitch out were they can't be opened or closed. It also corrupted the VPP Admin tools overlay any help would be appreciated. An example init.c file with this code would be awesome. Thanks for you hard work on this mod it's wonderful.
[SvL]Desbass 5 Oct, 2021 @ 10:24am 
Hello,
I tried also a pity that it does not work yet I tested in different places of my file,
if DaemonForge could give us some information it would be nice
[SvL]Desbass 5 Oct, 2021 @ 11:34am 
It works if we insert the code between the lines:

class CustomMission: MissionServer
{
void SetRandomHealth(EntityAI itemEnt)
{
if ( itemEnt )
{
float rndHlt = Math.RandomFloat( 0.45, 0.65 );
itemEnt.SetHealth01( "", "", rndHlt );
}
}

override void InvokeOnConnect(PlayerBase player, PlayerIdentity identity)
{
// Don't leave out the super (super important
super.InvokeOnConnect( player, identity);

GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).CallLater(NotificationSystem.SimpleNoticiation, 1000, false ,
"Welcome to {XYZ}, Check out our Server Information by Pressing PAUSE/BREAK or by Pressing ESC and Clicking Server Panel. Feel free to join our Discord", "Welcome Survivors",
"Notifications/gui/data/notifications.edds", ARGB(240, 90, 140, 195), 30,
identity);

}

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 );

GetGame().SelectPlayer( identity, m_player );

return m_player;
}

Steve Razoris 17 Sep, 2022 @ 5:22pm 
Join/Leave notify?? please??
< >
Showing 1-10 of 10 comments
Per page: 1530 50