Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_NotificationPlayerBanned.c
Go to the documentation of this file.
1
8{
9 override string GetText(SCR_NotificationData data)
10 {
11 int playerID, kickCauseGroup, kickCauseReason, duration;
12 data.GetParams(playerID, kickCauseGroup, kickCauseReason, duration);
13 KickCauseCode cause = KickCauseCodeAPI.NewCode(kickCauseGroup, kickCauseReason);
14
15 int days, hours, minutes, seconds;
16 SCR_DateTimeHelper.GetDayHourMinuteSecondFromSeconds(duration, days, hours, minutes, seconds);
17
18 string playerName;
19 data.GetNotificationTextEntries(playerName);
20 if (!GetPlayerName(playerID, playerName))
21 return string.Empty;
22
23 data.SetNotificationTextEntries(playerName, days.ToString(), hours.ToString(), minutes.ToString(), seconds.ToString());
24 return super.GetText(data);
25 }
26
27};
ENotification
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
string GetText()
class SCR_CampaignHintStorage SCR_BaseContainerCustomTitleEnum(EHint, "m_eHintId")
Get all prefabs that have the spawner data
bool GetPlayerName(int playerID, out string playerName)