Disable help
#1

Ok, I have a account disable system. How can I make it where disables are removed automatically after the time is up like

PHP код:
dcmd_disable(playerid,params[])
{
    new 
id,days,reason[128];
     if(
sscanf(params"uds[128]"iddaysreason)) return SendClientMessage(playeridCOLOR_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;

I use yini for accounts
Reply


Messages In This Thread
Disable help - by earlybird325 - 05.11.2014, 04:36
Re: Disable help - by Mitchelll - 05.11.2014, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)