Tempban - command!?
#2

pawn Код:
//tempBanned command
new HoursBanned,
    BannedTill = (HoursBanned*60*60*1000)+GetTickCount();

    //save here BannedTillinside file
    //and in his file make variable tempBanned = 1;
    Kick(playerid);
   
//under on player connect
if(/*loading tempbanned here*/ == 1 && /*loading BannedTill fro file*/ ? GetTickCount()) Kick(playerid); //his tempban didn't restart yet.
Thing is when you restart server it all restarts
Reply


Messages In This Thread
Tempban - command!? - by Twisted_Insane - 21.04.2012, 10:00
Re: Tempban - command!? - by [MG]Dimi - 21.04.2012, 10:06
Re: Tempban - command!? - by Twisted_Insane - 21.04.2012, 10:13
AW: Re: Tempban - command!? - by Nero_3D - 21.04.2012, 10:46
Re: Tempban - command!? - by Twisted_Insane - 21.04.2012, 10:54

Forum Jump:


Users browsing this thread: 3 Guest(s)