How to add more 'minutes' ?
1 Attachment(s)
I Have one code of example to suspend accounts.
In this, i type in console: ban_test "name" "minutes" to suspend. But i have one problem, i can't suspend for much minutes, because i'm using the get_time to unban the player. How i do to suspend for more minutes, and check to unban with other method? Example, i can suspend one player for 200 minutes.. How? It just a test.. I'll put it in other mod. If you don't understand what i'm trying to do, please tell me :3 Thanks! :twisted: |
Re: How to add more 'minutes' ?
I didnt look at the code, but I would do it with the unix time definition.
Have a look at: http://www.amxmodx.org/funcwiki.php?go=func&id=604 |
Re: How to add more 'minutes' ?
Quote:
|
Re: How to add more 'minutes' ?
Quote:
EDIT: Just in case the funcwiki is still down when people read this, the function is get_systime(). |
Re: How to add more 'minutes' ?
Quote:
Quote:
|
Re: How to add more 'minutes' ?
To get the time remaining until they are "unsuspended" you simply need to do a little thinking and a little math. You have access to the current time and you have access to the time that they are supposed to be "unsuspended". That's all the information you need to do what you want.
|
Re: How to add more 'minutes' ?
Quote:
|
| All times are GMT -4. The time now is 05:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.