DeteCT0R Posted May 26, 2019 Share Posted May 26, 2019 There is some code for custome game homepage not the best but its good to start learning For custome gametracker image: @if (Model.ServiceStatus == TCAdmin.Interfaces.Server.ServiceStatus.Running) { <img src="https://image.gametracker.com/images/maps/160x120/cs/@(Model.CurrentMap).jpg" style="height:150px;width:200px;" />} @if (Model.ServiceStatus == TCAdmin.Interfaces.Server.ServiceStatus.Stopped) { <img src="https://image.gametracker.com/images/maps/160x120/nomap.jpg" style="height:150px;width:200px;" />} For map: @(Html.Kendo().Map() .Name("map") .Center(47.5177557, 19.0580601) .Zoom(9) .Layers(layers => { layers.Add() .Type(MapLayerType.Tile) .UrlTemplate("http://#= subdomain #.tile.openstreetmap.org/#= zoom #/#= x #/#= y #.png") .Subdomains("a", "b", "c") .Attribution("© <a href='http://osm.org/copyright'>OpenStreetMap contributors</a>"); }) .Markers(markers => { markers.Add() .Location(47.5177557, 19.0580601) .Shape(MapMarkersShape.PinTarget) .Tooltip(tooltip => tooltip.Content("Budapest, Victor Hugo")); }) ) Some little edit need but you can use for custom game homepage. Link to comment Share on other sites More sharing options...
Alexr03 Posted May 26, 2019 Share Posted May 26, 2019 Nice job bud. Similar to what I produced when update 126 was released. Link to comment Share on other sites More sharing options...
DeteCT0R Posted May 26, 2019 Author Share Posted May 26, 2019 Nice job bud. Similar to what I produced when update 126 was released. Yeah there i see. If there problem i will remove the map Link to comment Share on other sites More sharing options...
Alexr03 Posted May 26, 2019 Share Posted May 26, 2019 No no it's fine haha, thats what the forum is for, sharing idea's. My images are down anyway since I changed servers. Link to comment Share on other sites More sharing options...
DeteCT0R Posted June 15, 2019 Author Share Posted June 15, 2019 Popup message. Maybe in the future i can use better place. Currently its popup when the user click to Start/Stop/Restart. (Its say Command send and the time) Nothing special Just for fun. Link to comment Share on other sites More sharing options...
Alexr03 Posted June 15, 2019 Share Posted June 15, 2019 Nice job pal Link to comment Share on other sites More sharing options...
numpty Posted March 11, 2020 Share Posted March 11, 2020 On 6/15/2019 at 9:11 AM, DeteCT0R said: Popup message. Maybe in the future i can use better place. Currently its popup when the user click to Start/Stop/Restart. (Its say Command send and the time) Nothing special Just for fun. how did you achieve that popup it is awsome :).. thats if ur willing to share Link to comment Share on other sites More sharing options...
DeteCT0R Posted March 12, 2020 Author Share Posted March 12, 2020 Actually i does remember correctly i dont have anymore TCadmin :D. Its a simple alert with the current time. I did it on version 2.0.127 probably now has more option to do. Link to comment Share on other sites More sharing options...
numpty Posted March 12, 2020 Share Posted March 12, 2020 Actually i does remember correctly i dont have anymore TCadmin :D. Its a simple alert with the current time. I did it on version 2.0.127 probably now has more option to do.Ok thanks no probs I'll see what can do :)Sent from my SM-G975F using Tapatalk Link to comment Share on other sites More sharing options...
Alexr03 Posted March 12, 2020 Share Posted March 12, 2020 @numptyTake a look at this https://demos.telerik.com/aspnet-mvc/notification Link to comment Share on other sites More sharing options...
CloudNine Posted April 12, 2020 Share Posted April 12, 2020 Anyone know the correct syntax to call a custom variable? Link to comment Share on other sites More sharing options...
Alexr03 Posted April 12, 2020 Share Posted April 12, 2020 7 hours ago, CloudNine said: Anyone know the correct syntax to call a custom variable? On the service page put this: @ { Service service = new TCAdmin.GameHosting.SDK.Objects.Service(Model.ServiceId); } You should then be able to do something like this: <h3>Rcon Password: @service.Variables["RConPassword"]</h3> I haven't tested it, but its something along those lines. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now