Slot question
#7

Quote:
Originally Posted by Lorenc_
Посмотреть сообщение
pawn Код:
if( ( g_ConnectedPlayers++ ) >= MAX_PLAYERS )
{
    if( p_AdminLevel[ playerid ] < 1 )
    {
        //message
        return Kick( playerid ), 1;
    }
}
Under your register box I assume it'll go

You can remove the "++" within the if statement if doing so since it can bug.
You may also do:

pawn Код:
public OnPlayerConnect(playerid)
{
    if(!IsPlayerAdmin(playerid)) if(playerid == MAX_PLAYERS-1) Kick(playerid);
    return 1;
}
Reply


Messages In This Thread
Slot question - by SloStunter - 24.01.2012, 15:41
Re: Slot question - by TheTale - 24.01.2012, 15:43
Re: Slot question - by Dripac - 24.01.2012, 16:09
Re: Slot question - by [MM]IKKE - 24.01.2012, 16:35
Re: Slot question - by Guest9328472398472 - 24.01.2012, 21:32
Re: Slot question - by Lorenc_ - 24.01.2012, 21:38
Re: Slot question - by Gh05t_ - 24.01.2012, 21:46
Re: Slot question - by Joe Staff - 25.01.2012, 04:19
Re: Slot question - by SloStunter - 25.01.2012, 13:18
Re: Slot question - by Universal - 25.01.2012, 16:01

Forum Jump:


Users browsing this thread: 7 Guest(s)