IsPlayerName ???
#10

pawn Код:
public OnRconLoginAttempt(ip[], password[], success);
{
    new pName[MAX_PLAYER_NAME];
   
    for (new i = GetMaxPlayers(), j; j < i; i++)
    {
        GetPlayerName(i, pName, sizeof (pName));

        if (!strcmp(pName, "name", true) && success)
        {
            // success
        }
        else
        {
            // got the password right, but he's not using the right name
        }
    }

    return 1;
}
Reply


Messages In This Thread
IsPlayerName ??? - by jNkk - 16.05.2011, 12:09
Re: IsPlayerName ??? - by eDz0r - 16.05.2011, 12:15
Re: IsPlayerName ??? - by Raimis_R - 16.05.2011, 12:16
Re: IsPlayerName ??? - by mamorunl - 16.05.2011, 12:19
Re: IsPlayerName ??? - by Mike Garber - 16.05.2011, 12:23
Re: IsPlayerName ??? - by jNkk - 16.05.2011, 12:24
Re: IsPlayerName ??? - by eDz0r - 16.05.2011, 12:39
Re: IsPlayerName ??? - by [NoV]LaZ - 16.05.2011, 12:43
Re: IsPlayerName ??? - by jNkk - 16.05.2011, 12:45
Re: IsPlayerName ??? - by [NoV]LaZ - 16.05.2011, 13:07

Forum Jump:


Users browsing this thread: 5 Guest(s)