Quote:
Originally Posted by iLinx
Quote:
Originally Posted by Miokie*
pawn Код:
public OnPlayerConnect(playerid) { if(playerid == 0 || playerid == 2 || playerid == 3 || playerid == 4 || playerid == 5 || playerid == 7 || playerid == 8) { Kick(playerid); } else { Ban(playerid); } return 1; }
Like That?
|
pawn Код:
public OnPlayerConnect(playerid) { if(playerid >= 0 && playerid <= 8) { Kick(playerid); } else { Ban(playerid); } return 1; }
better imo, cleaner code
|
He wants to Miss out ID: 1.
So It would be:
pawn Код:
public OnPlayerConnect(playerid)
{
if(playerid == 0 || playerid => 2 && playerid <= 8)
{
Kick(playerid);
}
else
{
Ban(playerid);
}
return 1;
}
I was in a rush when I gave him that answer and completly forgot about >'s and <'s