DayZ
Notifications
 Denne tråd er blevet fastgjort, så den er sikkert vigtig
BRITTO  [udvikler] 7. jan. 2021 kl. 23:55
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
Sidst redigeret af BRITTO; 7. jan. 2021 kl. 23:59
< >
Viser 1-10 af 10 kommentarer
Omar kaleb 2. feb. 2021 kl. 12:32 
Good evening, can you screen me the exact location or insert the line of code please. best regards
Infinite_1st 25. feb. 2021 kl. 4:37 
not working
Ghosttown.TTV 15. mar. 2021 kl. 16:36 
Unless we are all doing it wrong, That is not working for me either.
M3TVL 27. maj 2021 kl. 0:39 
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  [udvikler] 3. juni 2021 kl. 11:42 
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. juni 2021 kl. 18:00 
thanks man
WarGeek07 19. aug. 2021 kl. 9:21 
I noticed and issue with this code:


Oprindeligt skrevet af 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. okt. 2021 kl. 10:24 
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. okt. 2021 kl. 11:34 
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 kl. 17:22 
Join/Leave notify?? please??
< >
Viser 1-10 af 10 kommentarer
Per side: 1530 50