Hey guys today i was wondering about custom report button that like can report for exploiting or other stuff and that message would be send to my discord (through webhooks) and i could the username and what is the problem.
U can use HttpService to send requests
Yes, I know how webhooks work!
U would have a gui with a tetbox and use Remotes to Submit it to the Server
Yea but what about the usernames?
Were you planning to have this as a localscript or a server-script?
Giving the client power to spam reports is very inefficient.
In that case, on the server:
- Check if the player exists in the same server (I assume you want it that way?)
- Check if the report contains anything, at least a alphanumeric character
- Send the report to Discord via HttpService.
You could also add a cooldown on the server to prevent spamming.
U can get it trough the Remote
If you really are going to use a RemoteEvent, make sure you have secured it. Not securing the RemoteEvent will lead to troublesome matters such as an Exploiter repeatedly calling the RemoteEvent.
Smart exploiters can easily find the path of the RemoteEvent and spam it (Not to mention, they can also see any arguments that were sent to the Server for that Event).
Which in result, will flood your logs, and may get your Discord Account terminated if you went over their limits for webhooks.
I know about the exploiters, I will be trying to add cooldown so they can’t just do this
What do you need help with here? I’m stuck with what your original post is asking for.
Okay guys now I need help with player listing, I don’t want it to like repeat the names. My script for the name is like this:
script.Parent.TextLabel1.Text = game:FindFirstChild("Players").LocalPlayer.Name
And this script is in localscript!
Do you need a list of the usernames or are you trying to get the username of the player reporting the issue?
I need a list of usernames…
Of the person who sends the report or the rule breaker?
Using a Remote is the only way. So saying “If you really are going to use a RemoteEvent” is redundant.
I mean like in the label thingy has to be all the server usernames. And if there aren’t enough usernames to put into there a textlabel just isn’t visible.
Require the player to enter a username, and reason. When they click submit, the server checks if the player is in their server. If so, use HTTP service to do whatever wherever.
Or use game.Player.PlayerAdded to add a item to a UIListLayout when a player joins, and vise versa when they leave.
Thanks for you’re suggestion!!