Иконка ресурса

Advanced Slot Reservation 2.2.0

Нет прав для скачивания
Сообщения
282
Реакции
34
Помог
3 раз(а)
Most of players does not have static ip address. How this could be usefull?
Dont you think steamid could be a better option?
 
Сообщения
282
Реакции
34
Помог
3 раз(а)
Thank you!

What happens if we give to player named "Player" slot?
Does it mean anyone under the same name can join server as it has slot reservation?

edit: I've checked Only HamletEagle about steamid:
"DURING SV_ConnectClient the steamid is not available and the no player is PASSED index to the function." : /
 
Последнее редактирование:
Сообщения
99
Реакции
75
Помог
1 раз(а)
Thank you!

What happens if we give to player named "Player" slot?
Does it mean anyone under the same name can join server as it has slot reservation?
Yes, I will improve this soon, but for now, that's the only thing I can do.

edit: I of the info from've checked Only HamletEagle about steamid:
"DURING SV_ConnectClient the steamid is not available and the no player is PASSED index to the function." : /
Yes, steamid can't be retrieved from SV_ConnectClient directly unless you call SV_GetIDString ( https://github.com/dreamstalker/rehlds/blob/master/rehlds/engine/sv_main.cpp#L8112-L8115 ) which seems to be called inside SV_ConnectClient hook here: https://github.com/dreamstalker/rehlds/blob/master/rehlds/engine/sv_main.cpp#L2505
 
Сообщения
282
Реакции
34
Помог
3 раз(а)
Код:
if(bSkip[0] && is_user_admin(iPlayer))
            {
                iCount++
                continue
            }
Does this part of code checks for any flag except "z" (or any other flag set up by amx_default_access) ?
 
Сообщения
99
Реакции
75
Помог
1 раз(а)
Код:
if(bSkip[0] && is_user_admin(iPlayer))
            {
                iCount++
                continue
            }
Does this part of code checks for any flag except "z"?
Yes.


Код:
/**
 * Returns if the client has any admin flags set
 *
 * @param id    Client index
 *
 * @return      1 if client has any admin flags, 0 otherwise
 */
stock is_user_admin(id)
{
    new __flags = get_user_flags(id);
    return (__flags > 0 && !(__flags & ADMIN_USER));
}
 
Последнее редактирование:
Сообщения
282
Реакции
34
Помог
3 раз(а)
Yes.


Код:
/**
* Returns if the client has any admin flags set
*
* @param id    Client index
*
* @return      1 if client has any admin flags, 0 otherwise
*/
stock is_user_admin(id)
{
    new __flags = get_user_flags(id);
    return (__flags > 0 && !(__flags & ADMIN_USER));
}
I've changed it into
Код:
if(bSkip[0] && get_user_flags(iPlayer) && ADMIN_RESERVATION)
Hopefully it will work :$
 
Сообщения
99
Реакции
75
Помог
1 раз(а)
I've changed it into
Код:
if(bSkip[0] && get_user_flags(iPlayer) && ADMIN_RESERVATION)
Hopefully it will work :$
You know that administrators with ADMIN_RESERVATION flag will be counted for kicking, no?
Also, I will update script to work for flags inserted in .ini file.
 
Сообщения
33
Реакции
1
Cant you make this work for CS-Bans + fresh bans? much more better than typing name/steamid/ip in .ini file....
 
Сообщения
99
Реакции
75
Помог
1 раз(а)

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу