16.05.2011, 13:07
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;
}