Change Player Slots In Script
#2

you could do:
pawn Код:
#define NEW_MAX_PLAYERS 64
// replace 64 with the ammount you want

public OnPlayerConnect(playerid)
{
  new p;
  for(new i; i<NEW_MAX_PLAYERS;i++)
  {
    if(IsPlayerConnected(i);p++;
  }
  if(p>=64){SendClientMessage(playerid,0xFF0000AA,"This server is full. Try again later."); Kick(playerid);}
  return 1;
}
However it wouldn't keep trying to connect the player, it would just kick them.
Reply


Messages In This Thread
Change Player Slots In Script - by V1ceC1ty - 22.07.2009, 02:30
Re: Change Player Slots In Script - by Badger(new) - 22.07.2009, 02:38
Re: Change Player Slots In Script - by Diogo_Linheiro - 22.07.2009, 02:52
Re: Change Player Slots In Script - by V1ceC1ty - 22.07.2009, 03:20
Re: Change Player Slots In Script - by V1ceC1ty - 22.07.2009, 06:09
Re: Change Player Slots In Script - by yezizhu - 22.07.2009, 07:29
Re: Change Player Slots In Script - by V1ceC1ty - 22.07.2009, 08:54
Re: Change Player Slots In Script - by yezizhu - 22.07.2009, 09:01
Re: Change Player Slots In Script - by V1ceC1ty - 22.07.2009, 09:07
Re: Change Player Slots In Script - by yezizhu - 22.07.2009, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)