Last_Name / license and everything related to RP
#1

i want to know what need in RP Mod ..

I have House and DealerShip System , and i want filterscript of Driver/Weapon License ,
and if the player no in the game with the name Firstname_Lastname he got kick.
and can you give me the introduction of the game server and i edit it to my server
and admin system good to RP Server..

Thanks to helpers!!
Reply
#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
#3

i need this license system and weapon!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)