accountdisable
#7

you can use like this in under the command;-
assuming that number of players that player has to be banned is to be stored in varable 'du'
pawn Код:
new expire;
expire = getime() + (60*60*24*du);
//now save the variable 'expire' in a file using whatever u use
now OnPlayerConnect() use this--
pawn Код:
//first load the variable stored earlier and assuming that the variable is loaded in expire use this
if(getime()<expire)
{
SendClientMessage(playerid,-1,"You are abnned from this server");
Kick(playerid);
}
else
{
//your login procedure
}
Reply


Messages In This Thread
accountdisable - by AroseKhanNiazi - 01.03.2014, 07:56
Re: accountdisable - by ikbenremco - 01.03.2014, 08:03
Re: accountdisable - by AroseKhanNiazi - 01.03.2014, 11:29
Re: accountdisable - by Zex Tan - 01.03.2014, 11:45
Re: accountdisable - by AroseKhanNiazi - 01.03.2014, 13:51
Re: accountdisable - by AroseKhanNiazi - 02.03.2014, 06:44
Re: accountdisable - by BroZeus - 02.03.2014, 09:48

Forum Jump:


Users browsing this thread: 2 Guest(s)