Solved Pop up image as MOTD

Discussion in 'Rust Discussion' started by MrSmid, Jul 19, 2015.

  1. Hi there,

    Does anyone know how to make a plugin that pops up a window (image hosted on my website) as a MOTD when someone joins the server? Like a plugin that lets you set the size of the image and centers it in the users' window.

    I've tried to do some changes in the MOTDGui plugin by PaiN but I'm affraid my C# knowledge sucks too bad :( Tried some stuff I found on the unity wiki but no results.

    Thanks in advance and I wish everyone a great day/evening! :)
     
  2. Replace the image url with the one from your server.
     

    Attached Files:

  3. crap wrong forum :-/
    [DOUBLEPOST=1437332512][/DOUBLEPOST]
    Thanks for the reply buddy but I tried this before. It loads the image just fine but I was looking for a way to make it bigger and (if possible) to center it in the middle of the players's screen.
     
  4. I just noticed if I use ""type"":""Rect.Center"", the image centers! Thats pretty awesome :D
    Just need to find out how to make it bigger, and then I think its fixed.

    I will try the anchormin and anchormax settings, Im not sure if they work with the Rect.Center thingy, lets give it a shot :D

    Thanks for helping me out by the way
     
  5. You do not have any problem of opacity on your url image ?
     
  6. Not realy, just the size thats too small. Its not showing the full image.
     
  7. If you want to display it all over the screen check the RulesGUI positioning.
     
  8. need to change your anchormin anchormax and var (xmax xmin )
     
  9. Yup I got it now :) Anyone have an idea how to destroy the ui after x seconds?
    [DOUBLEPOST=1437394196][/DOUBLEPOST]Allright I managed to find it, Ill post it in the plugin's forum
     
  10. mayve the best thing for you to do is to use the new Rules GUI from Pain. I'm sure that's what you need :D
     
  11. Last edited by a moderator: Jul 20, 2015