02.03.2014, 09:48
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'
now OnPlayerConnect() use this--
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
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
}