Player Name
#3

At the top of ur script: >.>
pawn Код:
new
    BadNames[] =
    {
      "Ass",
      "YouAreShit",
      "ShitKid"
      // You can add more. Remember don't add a ',' at the last name, see above.
    }
;
And this is the code you can use to handle this: >.>
pawn Код:
new
    x,
    pName[MAX_PLAYER_NAME] = "YouAreShit" // I used = "YouAreShit" to test it.
;
do
{
    GetPlayerName(playerid, pName, sizeof(pName));
    if(strfind(BadNames[x], pName, true) != -1) return printf("%s has been kicked! (Bad Name)", pName);
    x++;
}
while((x != sizeof(BadNames)));
Reply


Messages In This Thread
Player Name - by Sascha - 28.04.2010, 12:10
Re: Player Name - by Correlli - 28.04.2010, 12:14
Re: Player Name - by RyDeR` - 28.04.2010, 12:23

Forum Jump:


Users browsing this thread: 1 Guest(s)