Solved Sign edit tracking

Discussion in 'Plugin Requests' started by Freaky, May 7, 2015.

  1. Hi all!
    I'm using on my server Sign Artist: http://oxidemod.org/plugins/sign-artist.992/ and i have a rule on my server: Bad words or obscene drawings on the signs are prohibited!
    When a player draw a sign, the draw is copyed in a folder /server_name/storage/png with an ID (Sign Artist signs folder)...
    I want to know based of that specific ID who drew the sign! It is possible?
    I don't want to "fly" across the whole map and search every house to look for that sign and with the
    Prod (Who Owns) i find the owner of the house or the sign!
    Thx!
     
  2. This isn't possible directly out of the box sort of speak but it might be possible to have a plugin check all signs for the ID of a specified PNG and have it return the location or something.
     
  3. That will be great, but there isn't an plugin for that! :( not for the moment! :)
     
  4. @Mughisi the player is passed to Signage.UpdateSign() in RPCMessage, so it can test if they player has permissions to change the sign. Can't we hook into it(UpdateSign()) and do some logging?
     
  5. I believe BuildingOwners is already saving the owners of signs so I don't think we should add extra logging just for signs, and regarding hooking into UpdateSign(), we don't have to as I've add 3 hooks in the past for signs: http://docs.oxidemod.org/#signs-hooks
     
  6. Isn't the owner the guy who built it? If so, it doesn't really solve Freaky's problem. You can have more ppl authorized in the house, and any one of them could start drawing dickbutts any time now. shame to ban the whole household now.

    The hooks (or the docs) seem to be from the time where the signs could be edited with text only. instead of
    OnSignUpdated(Signage sign, BasePlayer player, string text)

    we should have
    OnSignUpdated(Signage sign, BasePlayer player, id pngTextId)

    that would make more sense and allow Freaky to have his wish in 10 lines plugin :)
     
  7. In the buildingowners are just lots of numbers like 36.52985 for each SteamID, not the signs ID... and yes seanterris i want to know that specific sign ID owner (who drew)... not the house owner (that i know)...
    [DOUBLEPOST=1430977954][/DOUBLEPOST]I was able to find the sign owner with Prod (Who Owns), but the sign was on the rock, not on the house ... when is on the house, i think that it gaves me the owner of the house... i want (if is possible) ... /sign ID ... returns the player name (or STEAMID) ... something like that ... i don't know ... :)
     
  8. The update hook is actually OnSignUpdated(Signage sign, BasePlayer player) now. Not sure if the pngId can be added to it, but technically it shouldn't as you have the sign so you can get the pngId from that.
    Based on the value you can determine the location of the sign and just teleport there to be able to prod it :p
     
  9. And you are right of course. Freaky, based on what Mughisi said it should NOT be a problem to have a list with players who made a change to that particular sign. @Bombardir, author of the Sign Artist is a pretty nice guy, you might consider asking him :)
     
    Last edited by a moderator: May 7, 2015
  10. :)) k ..thaks for your replies!
     
  11. I will add logs in next update ;)
     
  12. Would it be possible to see who lasted edited a sign. I have a bunch of immature children going around painting swastikas on signs in my server and would love to be able to see who lasted edited the sign
     
  13. When i had my server with Rust:IO Extension it was saying STEAMD ID "12381902839012830" created a sign! you should try it
     
  14. it was doing that. It no longer does. Again though, the issue with that is not always who created the sign itself, but did the drawing on it. Like I said, I have what we call a "graffiti park/safe zone" on my server. So all of the signs themselves have been placed by my admins. So I don't need to know who the owner of the sign is, I'm looking to see a "last edited by"
     
  15. I'm needing this kind of plugin too, i'll look if i can make one.
     
  16. When i click on your link i get "You do not have permission to view this page or perform this action."
     
  17. Its currently under review by the admins, I'll message you on here when its approved.
     
  18. Cool thank you, i'll be able to get rid of people putting penises in my safezone lol
     
  19. Thanks for hearing me out and creating a plugin. I can wait until it's approved!