Quote:
Originally Posted by fysiks
Then add it to the default AMX Mod X system. I've seen plugins that do this. It's even possible that I've done it before, I can't remember for sure since I've done several different edits involving users.ini.
|
Can you take a look if you have it?
Edit:
This is what i have for check if time expired
PHP Code:
#include <amxmodx>
public plugin_init(){
register_concmd("amx_addvip", "add_vip", ADMIN_RCON, "<Steam ID> <expire day> <expire month> <expire year>") // flag "t"
}
stock is_valid_vip(expire_year, expire_month, expire_day)
{
new y[5], m[3], d[3], today_year, today_month, today_day
get_time("%Y", y, 4)
get_time("%m", m, 2)
get_time("%d", d, 2)
today_year = str_to_num(y)
today_month = str_to_num(m)
today_day = str_to_num(d)
if(today_year > expire_year)
return 0
else if(today_year == expire_year)
{
if(today_month > expire_month)
return 0
else if(today_month == expire_month)
{
if(today_day > expire_day)
return 0
}
}
return 1
}
__________________