30.06.2009, 23:50
Or something like this:
Sorry if any mistakes, I"m very tired even though its only 20:00.
pawn Код:
//Top
#define MAX_BAD_NAMES 2 // Number of "bad names" you will have in the array
new BanNames[MAX_BAD_NAMES][MAX_PLAYER_NAME] =
{
"OneRestrictedName",
};
//OnPlayerConnect
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
for(new b = 0; b < sizeof(BadNames); ++)
{
if(!strcmp(name, b, true))
{
Kick(playerid);
}
}