Disable the Account
#2

Use getdate() function.

For example (it involves that you have something to save account data)

PHP код:

CMD
:daysban(playeridparams[])
{
      new 
daysaccount_name[25];
      if(
sscanf(params"s[25]d"account_namedays)) return SCM(playerid, -1"SYNTAX : /daysban [Account name] [Days]");
      
AccountInfo[playerid][DaysBanned] = getdate() + days;
      return 
1;
}
public 
OnPlayerConnect(playerid)
{
      if(
AccountInfo[playerid][DaysBanned] > getdate()) return SCM(playerid, -1"You're still banned !");
      return 
1;

Reply


Messages In This Thread
Disable the Account - by arlindi - 08.06.2014, 18:52
Re : Disable the Account - by S4t3K - 08.06.2014, 19:08
Re: Disable the Account - by arlindi - 08.06.2014, 19:18
Re : Disable the Account - by S4t3K - 08.06.2014, 19:36
Re: Disable the Account - by arlindi - 08.06.2014, 19:38
Re : Disable the Account - by S4t3K - 08.06.2014, 19:46
Re: Disable the Account - by arlindi - 08.06.2014, 19:57
Re: Disable the Account - by arlindi - 09.06.2014, 12:18

Forum Jump:


Users browsing this thread: 4 Guest(s)