06.07.2010, 18:51
pawn Код:
stock IsValidName(playerid)
{
if (IsPlayerConnected(playerid))
{
new player[24];
GetPlayerName(playerid,player,24);
for(new n = 0; n < strlen(player); n++)
{
if (player[n] == '_' && player[n+1] >= 'A' && player[n+1] <= 'Z') return 1;
if (player[n] == ']' || player[n] == '[') return 0;
}
}
return 0;
}