Tokio Posted March 7, 2018 Share Posted March 7, 2018 How to get mute remaining time? For example i write /getmute, and then output "Mute remaining time: 5 mins", or "You are not muted". Sorry for my bad english. Link to comment
Storm-Hanma Posted March 7, 2018 Share Posted March 7, 2018 Set timer function for 5 min delay Link to comment
Tokio Posted March 7, 2018 Author Share Posted March 7, 2018 5 minutes ago, Khadeer143 said: Set timer function for 5 min delay How? Can you show a example? Link to comment
Storm-Hanma Posted March 7, 2018 Share Posted March 7, 2018 (edited) Did you created any code ?anyway try this example when the mute apply use this Example : local minutes = 5 local milisec = minutes * 60000 --Just passing minutes to miliseconds. setTimer (function() destroyElement (vehicle) end,milisec,1) Set output msg( you r unmuted or 5min is up) after destroy element and this /getmute what for weather to check the mute time or unmute player ? Edited March 7, 2018 by Khadeer143 1 Link to comment
MTA Anti-Cheat Team Dutchman101 Posted March 8, 2018 MTA Anti-Cheat Team Share Posted March 8, 2018 If you're using default admin panel, look here (aUnmuteTimerList): https://github.com/multitheftauto/mtasa-resources/blob/master/[admin]/admin/server/admin_server.lua#L338 Link to comment
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