06.05.2018, 05:15
Код:
CheckPassword(string[])
{
for(new i = strlen(string); i > 0; i--)
if(!('A' <= string[i] <= 'Z') && !('a' <= string[i] <= 'z') && !('0' <= string[i] <= '9')) return false;
return true;
}
Код:
new pKick[MAX_PLAYERS];
if(CheckPassword(inputtext))
{
His password only contains Alphabets + numbers do your code now
}
else
{
His password has some symbols or other language words,
pKick[playerid] ++ ; // Adding +1 to his warning
if(pKick[playerid] >= 10) // He've done this for more than 10 times
{
Kick(playerid); // Kicking him
}
}

