Anti-Name Issue!
#7

Are you sure you placed it under OnPlayerConnect?
pawn Код:
public OnPlayerConnect(playerid)
{
    // Roleplay name checker, for non-admins.
    if(PlayerInfo[playerid][pAdmin] == 0)
    {
        new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, sizeof(pName));
        if(strfind(pName, "_", true) == -1)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "You must have a name following the Firstname_Lastname format. You got kicked as a result!");
            Kick(playerid);
        }
    }
    return 1;
}
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 17 seconds.
Reply


Messages In This Thread
Anti-Name Issue! - by Akcent_Voltaj - 16.08.2012, 18:46
Re: Anti-Name Issue! - by lamarr007 - 16.08.2012, 18:54
Re: Anti-Name Issue! - by Sandiel - 16.08.2012, 18:55
Re: Anti-Name Issue! - by Akcent_Voltaj - 16.08.2012, 19:13
Re: Anti-Name Issue! - by Sandiel - 16.08.2012, 19:15
Re: Anti-Name Issue! - by Akcent_Voltaj - 16.08.2012, 19:25
Re: Anti-Name Issue! - by Sandiel - 16.08.2012, 19:28
Re: Anti-Name Issue! - by [DOG]irinel1996 - 16.08.2012, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)