22.07.2009, 02:38
you could do:
However it wouldn't keep trying to connect the player, it would just kick them.
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;
}