02.07.2012, 17:42
For the name code, here is an awesome stock I found. Keep the credits!
As for everything else, we are not going to write all the coding for your server. Find tutorials and learn how to do it yourself. Use the search function, I know there are a couple drivers license filter scripts out there.
pawn Код:
stock IsARoleplayName(name[]) // Function created by LennytheCup
{
new
szLastCell,
bool: bUnderScore;
for(new i; i < strlen(name); i++)
{
if(name[i] == '_')
{
if(bUnderScore == true)
{
return 0;
}
bUnderScore = true;
}
else if(!szLastCell || szLastCell == '_')
{
if(name[i] < 'A' || name[i] > 'Z')
{
return 0;
}
}
else
{
if(name[i] < 'a' || name[i] > 'z')
return 0;
}
szLastCell = name[i];
}
if(bUnderScore == false)
return 0;
return 1;
}

