Ingame Check
#9

Код:
OnPlayerUpdate()
{
     PlayerLogged[playerid] == 0;
}
OnGameModeInit()
{
      SetTimer("CheckFunc",10,0);
}
public CheckFun()
{
 
     for(new i = MAX_PLAYERS;i > 0;i--)
    {
          if(IsPlayerConnected(i))
          {
                PlayerLogged[i]++;
                 if(PlayerLogged[i] > 2) { SendClientMessage(playerid,COLOR_RED,"TIMED"); Kick(playerid); //The client mesg qwont work becaz its just before kick :P
          }
    }
}
Something like this ^^
Reply


Messages In This Thread
Ingame Check - by RayZar - 27.04.2013, 13:33
Re: Ingame Check - by Mwowwtittybang - 27.04.2013, 13:34
AW: Ingame Check - by RayZar - 27.04.2013, 13:35
AW: Ingame Check - by RayZar - 27.04.2013, 13:49
Re: Ingame Check - by Tamer - 27.04.2013, 14:31
Re: Ingame Check - by MP2 - 27.04.2013, 14:59
Re: Ingame Check - by Chenko - 27.04.2013, 15:35
Re: Ingame Check - by selEcT - 03.05.2013, 06:20
Re: Ingame Check - by Yashas - 03.05.2013, 06:32
Re: Ingame Check - by selEcT - 03.05.2013, 07:20

Forum Jump:


Users browsing this thread: 3 Guest(s)