New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How I get time and reason ban when player connect with server #404
Comments
You would want to fetch the reason & time within RowCount check. For the message, you would want to modify the translation file to update with the new #format and update each locale, and then change KickClient func call to include more args to pass to translation formatter |
Can You show me, how I can get reason and time from database? |
Sourcemod translation doc for formatter: https://wiki.alliedmods.net/Translations_(SourceMod_Scripting) KickClient in this file: https://github.com/alliedmodders/sourcemod/blob/0a91b1f5b1160171c3c5ecaecc9b7cb0e40c5a7d/plugins/include/clients.inc |
Okej,
Good? |
If it works, it works, but the additional call is not required as the dataset handle is already present in VerifyBan params |
Ech, this code not work :( |
Try this gist: https://gist.github.com/RumbleFrog/9b6192de0d81137769229935e99815b2 Note that length is not formatted to be human-friendly, but it'll help you get the gist |
Thank you very much. |
Can I delete this code
? |
No, that actually is used to prevent them from joining rapidly, sorta like a cache |
Okej, |
Hello,
How I can add new notification when player have ban and connect with server?
This notification print to player command "You have been banned by this server, check {1} for more info", but I want to add reason, time for this notification
The text was updated successfully, but these errors were encountered: