Last_Name / license and everything related to RP
#2

For the name code, here is an awesome stock I found. Keep the credits!

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;
}
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.
Reply


Messages In This Thread
Last_Name / license and everything related to RP - by OnSystem - 02.07.2012, 17:04
Re: Last_Name / license and everything related to RP - by Steven82 - 02.07.2012, 17:42
Re: Last_Name / license and everything related to RP - by OnSystem - 03.07.2012, 22:12

Forum Jump:


Users browsing this thread: 1 Guest(s)