Name restrictions
#3

pawn Код:
new allowed_names[][] =
{
     "David_Johnson",
     "Melinda."
};

// Where you check
new name[ 24 ]; GetPlayerName(playerid, name , 24);
for( new i = 0; i < sizeof(allowed_names); i++ )
{
   if( strcmp( name, allowed_names[i], true) != -1)
   {
       // Allow names
   }
}
Reply


Messages In This Thread
lock and bin it please. - by Siv - 07.05.2013, 08:49
Re: Name restrictions - by jakejohnsonusa - 07.05.2013, 11:22
Re: Name restrictions - by RajatPawar - 07.05.2013, 11:33

Forum Jump:


Users browsing this thread: 2 Guest(s)