Kick if you do not type the command?
#2

pawn Код:
// top of script

new kicktimer;

// OnPlayerConnect

kicktimer = SetTimerEx("LoginKick",120000,false,"i",playerid); // 120,000 sec = 2 minutes

// bottom of script

forward LoginKick(playerid);
public LoginKick(playerid)
{
       // add your login/register variables and levels etc here I guess...
       // for example:
       if(PlayerInfo[playerid][LoggedIn] != 1) // if they are not logged in
       {
              Kick(playerid);
              SendCllientMessage(playerid,color,"You Have Been Automatically Kicked. Reason:  Failed To Log-In On Time.");
              KillTimer(kicktimer);
              // whatever messages u want
              // add whatever else
       }
}
Untested.

Should work, you get the idea?
Reply


Messages In This Thread
Kick if you do not type the command? - by Shockey HD - 18.07.2011, 18:41
Re: Kick if you do not type the command? - by grand.Theft.Otto - 18.07.2011, 19:02
Re: Kick if you do not type the command? - by Shockey HD - 18.07.2011, 19:09
Re: Kick if you do not type the command? - by grand.Theft.Otto - 18.07.2011, 19:31
Re: Kick if you do not type the command? - by Shockey HD - 18.07.2011, 19:34
Re: Kick if you do not type the command? - by Adil - 18.07.2011, 19:38
Re: Kick if you do not type the command? - by lawonama - 18.07.2011, 19:51
Re: Kick if you do not type the command? - by grand.Theft.Otto - 18.07.2011, 20:31
Re: Kick if you do not type the command? - by Adil - 18.07.2011, 20:42
Re: Kick if you do not type the command? - by Shockey HD - 18.07.2011, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)