09.11.2013, 17:50
Well first you need to detect if whatever he types in 9 numbers:
Then place that on:
pawn Код:
stock FindNumbers(text[])
{
new count;
for(new i, j = strlen(text); i < j; ++i)
{
if('0' <= text[i] <= '9'))
{
++ count;
}
}
return (count > 9); // change 9 to whatever numbers you want to check
}
pawn Код:
public OnPlayerText(playerid, text[])
{
if(FindNumbers(text))
{
Kick(playerid); //etc
}
return 1;
}