The following is the time minuts for a ban (0 = permanent)
Code:
if (get_user_flags(id)&HIGHER_BAN_TIME_ADMIN)
{
switch(g_menuOption[id])
{
case 0: g_menuSettings[id] = 60
case 1: g_menuSettings[id] = 4320
case 2: g_menuSettings[id] = 10080
case 3: g_menuSettings[id] = 0
}
}
In the ban menu those numbers are shown, but it can be har to know excactly what those number are in dayes/weeks.
So the thing i want to do is the banmenu shows:
Code:
1. 1Hour
2. 3Days
3. 7Days
4. Permanent
The problem is the function need the time in minuts and not a text string.