Indiculous Posted February 27, 2014 Report Share Posted February 27, 2014 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- NOTICE: I do not take credit for these scripts im simply just sharing them with a tutorial! 1) Watermark : In your Mission file open your init.sqf and add this at the very bottom //DayZ Watermark if (!isNil "server_name") then { [] spawn { waitUntil {(!isNull Player) and (alive Player) and (player == player)}; waituntil {!(isNull (findDisplay 46))}; 5 cutRsc ["wm_disp","PLAIN"]; ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name; }; }; Next open your description.ext and add this to the very bottom // DayZ Watermark class RscTitles { class wm_disp { idd = -1; onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]"; fadein = 0; fadeout = 0; duration = 10e10; controlsBackground[] = {}; objects[] = {}; class controls { class wm_text2 { idc = 1; x = safeZoneX+0.027;//safeZoneW*0.01; y = safeZoneY+safeZoneH-0.16; w = 1.151*safeZoneH; h = 0.057*safeZoneH; shadow = 2; class Attributes { font = "EtelkaNarrowMediumPro"; color = "#24FFFFFF"; align = "left"; // put "center" here if you want some background valign = "middle"; shadow = 2; }; colorBackground[] = { 1, 0.3, 0, 0 }; // uncomment and increase 4th number to have a background font = "EtelkaNarrowMediumPro"; size = 0.06*safeZoneH; type = 13; style = 0; text=""; }; }; }; }; Then open you init again and Find This Line dayz_previousID = 0; Directly under that add server_name = "Servername"; So it should look like this dayz_previousID = 0; server_name = "Servername"; Your done now go in game and at the bottom left you will see your watermark! ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Hooty, Rythron, mgm and 6 others 9 Link to comment Share on other sites More sharing options...
Indiculous Posted February 27, 2014 Author Report Share Posted February 27, 2014 Bump! Link to comment Share on other sites More sharing options...
Rythron Posted February 28, 2014 Report Share Posted February 28, 2014 Got 1 too great post ! Link to comment Share on other sites More sharing options...
ChesterCheetoz Posted February 28, 2014 Report Share Posted February 28, 2014 I added it as stated and I get "Wait for Host" Link to comment Share on other sites More sharing options...
Indiculous Posted February 28, 2014 Author Report Share Posted February 28, 2014 can you send me your mission? Link to comment Share on other sites More sharing options...
kiel367 Posted February 28, 2014 Report Share Posted February 28, 2014 i got stuck on waiting for host as well, mpmissions\_cur_mp.Naf\Description.ext, line 301: .RscTitles: Member already defined im assuming this is my intro script Link to comment Share on other sites More sharing options...
Indiculous Posted February 28, 2014 Author Report Share Posted February 28, 2014 Send me your mission and let me have a look? Link to comment Share on other sites More sharing options...
kiel367 Posted February 28, 2014 Report Share Posted February 28, 2014 iv since managed to sort it, turns out i had an old custom rsctitles defined, worked fine once i removed it, anyone with a pre-existing one like me would need to remove it Link to comment Share on other sites More sharing options...
ThePotatoeTree Posted March 1, 2014 Report Share Posted March 1, 2014 Its stuck at authenticating to server, how do i send you files? Link to comment Share on other sites More sharing options...
blackwiddow Posted March 1, 2014 Report Share Posted March 1, 2014 Guys how do I make this a logo overlay in .paa format instead of just displaying the server name in text I can display a small image in the bottom left? Please any help would be greatly appreciated. Link to comment Share on other sites More sharing options...
blackwiddow Posted March 1, 2014 Report Share Posted March 1, 2014 Like this... Link In the bottom left of the screen Link to comment Share on other sites More sharing options...
ThePotatoeTree Posted March 2, 2014 Report Share Posted March 2, 2014 Its not there? I deleted RscTitles from // DayZ Watermark class RscTitles { <------------------class wm_disp { and im in game but its not on bottom left Link to comment Share on other sites More sharing options...
kiel367 Posted March 2, 2014 Report Share Posted March 2, 2014 Its not there? I deleted RscTitles from // DayZ Watermark class RscTitles { <------------------class wm_disp { and im in game but its not on bottom left you dont delete that, i had another RscTitles part from another script left over i forgot to remove Link to comment Share on other sites More sharing options...
ThePotatoeTree Posted March 2, 2014 Report Share Posted March 2, 2014 you dont delete that, i had another RscTitles part from another script left over i forgot to remove Link to comment Share on other sites More sharing options...
kiel367 Posted March 2, 2014 Report Share Posted March 2, 2014 no, sorry if you misunderstood, but if you read my post again, it says i had an RscTitles in from a previous script defined in my code, so i removed it and it worked, you do not delete any of the code provided in the op Link to comment Share on other sites More sharing options...
ThePotatoeTree Posted March 3, 2014 Report Share Posted March 3, 2014 no, sorry if you misunderstood, but if you read my post again, it says i had an RscTitles in from a previous script defined in my code, so i removed it and it worked, you do not delete any of the code provided in the op when i add it back on i cant play, server stuck at wait for host Link to comment Share on other sites More sharing options...
Razorman Posted March 3, 2014 Report Share Posted March 3, 2014 Works flawlessly using op instructions, if u cant make a simple script edit like this work you have no business hosting a server, jusayin.... ;) RedBreath 1 Link to comment Share on other sites More sharing options...
StiflersM0M Posted March 3, 2014 Report Share Posted March 3, 2014 Is there a way to use this together with Btc logistic ? you need in both script the same class.... (Rsc titles) Link to comment Share on other sites More sharing options...
kiel367 Posted March 3, 2014 Report Share Posted March 3, 2014 Is there a way to use this together with Btc logistic ? you need in both script the same class.... (Rsc titles) was just about to mention this, my btc hud part was what i removed, and players get a message about it on startup, the rsctitles part i removed was to do with that Link to comment Share on other sites More sharing options...
Indiculous Posted March 5, 2014 Author Report Share Posted March 5, 2014 Bump Link to comment Share on other sites More sharing options...
Indiculous Posted March 10, 2014 Author Report Share Posted March 10, 2014 bump Link to comment Share on other sites More sharing options...
LawlessBaron Posted March 30, 2014 Report Share Posted March 30, 2014 A bit of indentation And mine won't display // DayZ Watermark class RscTitles { class wm_disp { idd = -1; onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]"; fadein = 0; fadeout = 0; duration = 10e10; controlsBackground[] = {}; objects[] = {}; class controls { class wm_text2 { idc = 1; x = safeZoneX+0.027;//safeZoneW*0.01; y = safeZoneY+safeZoneH-0.16; w = 1.151*safeZoneH; h = 0.057*safeZoneH; shadow = 2; class Attributes { font = "EtelkaNarrowMediumPro"; color = "#24FFFFFF"; align = "left"; // put "center" here if you want some background valign = "middle"; shadow = 2; }; colorBackground[] = { 1, 0.3, 0, 0 }; // uncomment and increase 4th number to have a background font = "EtelkaNarrowMediumPro"; size = 0.06*safeZoneH; type = 13; style = 0; text=""; }; }; }; }; if (!isNil "server_name") then { [] spawn { waitUntil {(!isNull Player) and (alive Player) and (player == player)}; waituntil {!(isNull (findDisplay 46))}; 5 cutRsc ["wm_disp","PLAIN"]; ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name; }; }; Link to comment Share on other sites More sharing options...
BAROD Posted April 16, 2014 Report Share Posted April 16, 2014 you can also implement a picture is very well in the description you put this at the bottom class RscTitles { class wm_disp { idd = -1; onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]"; fadein = 0; fadeout = 0; duration = 10e10; controlsBackground[] = {}; objects[] = {}; class controls { class wm_text2 { idc = 1; x = safeZoneX+0.027;//safeZoneW*0.01; y = safeZoneY+safeZoneH-0.16; w = 0.151*safeZoneH; h = 0.057*safeZoneH; shadow = 2; class Attributes { font = "EtelkaNarrowMediumPro"; color = "#24FFFFFF"; align = "left"; valign = "middle"; shadow = 2; }; colorBackground[] = { 1, 0.3, 0, 0 }; font = "EtelkaNarrowMediumPro"; size = 0.06*safeZoneH; type = 13; style = 0; text=""; }; }; }; }; and this in our init at the bottom _pic = "picture\example.paa"; [ '<img align=''left'' size=''1.0'' shadow=''1'' image='+(str(_pic))+' />', safeZoneX+0.027, safeZoneY+safeZoneH-0.1, 99999, 0, 0, 3090 ] spawn bis_fnc_dynamicText; xBowBii and looter809 2 Link to comment Share on other sites More sharing options...
Mochan Posted April 17, 2014 Report Share Posted April 17, 2014 Is there a char limit? Link to comment Share on other sites More sharing options...
BAROD Posted April 17, 2014 Report Share Posted April 17, 2014 nope size=''1.0 like size=''15.0 ^^ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now