05.11.2014, 04:36
Ok, I have a account disable system. How can I make it where disables are removed automatically after the time is up like
I use yini for accounts
PHP код:
dcmd_disable(playerid,params[])
{
new id,days,reason[128];
if(sscanf(params, "uds[128]", id, days, reason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /disable id reason");
else
{
playerinfo[id][disabled] =1;
playerinfo[id][disabledays] =days;
SendClientMessage(playerid,-1,"You have been disabled.");
Kick(playerid);
}
return 1;
}