05.07.2013, 16:35
(
Последний раз редактировалось smiiir; 05.07.2013 в 22:06.
)
Melhor..
By Bruno
pawn Код:
public OnPlayerText ( playerid, text[])
{
static cell [ 120 ], Nome [ 20+1 ] ;
new sizes_s = strlen(text) ;
new cont = 0;
for (new i = 0 ; i <= sizes_s; i++) if ((text[ i ] >= 47) && (text[ i ] <= 58)) cont++;
GetPlayerName ( playerid, Nome, 21 ) ;
if (cont >= 8 && cont <= 16)
{
for (new xs = 0; xs <= sizes_s; xs++) if((text[ xs ] == 46) || (text[ xs ] == 58))
{
Kick ( playerid ) ;
return false;
}
}
return 1;
}