DayZ
Notifications
 此主题已被置顶,因此可能具有重要性
BRITTO  [开发者] 2021 年 1 月 7 日 下午 11: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
最后由 BRITTO 编辑于; 2021 年 1 月 7 日 下午 11:59
< >
正在显示第 1 - 10 条,共 10 条留言
Omar kaleb 2021 年 2 月 2 日 下午 12:32 
Good evening, can you screen me the exact location or insert the line of code please. best regards
Infinite_1st 2021 年 2 月 25 日 上午 4:37 
not working
Ghosttown.TTV 2021 年 3 月 15 日 下午 4:36 
Unless we are all doing it wrong, That is not working for me either.
M3TVL 2021 年 5 月 27 日 上午 12: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  [开发者] 2021 年 6 月 3 日 上午 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 2021 年 6 月 9 日 下午 6:00 
thanks man
WarGeek07 2021 年 8 月 19 日 上午 9:21 
I noticed and issue with this code:


引用自 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 2021 年 10 月 5 日 上午 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 2021 年 10 月 5 日 上午 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 2022 年 9 月 17 日 下午 5:22 
Join/Leave notify?? please??
< >
正在显示第 1 - 10 条,共 10 条留言
每页显示数: 1530 50