Steam Owner

Steam Owner 1.1.0

Нет прав для скачивания
Версия Дата выпуска Скачивания Рейтинг
1.1.0 2 0,00 звёзд Оценок: 0
1.0.1 11 0,00 звёзд Оценок: 0

Breaking change​

client_steam_owner now passes the player's index as the first parameter:

forward client_steam_owner(id, const authid[], const owner_authid[], const owner_steamid64[]);

Plugins no longer need to look the player up by comparing authid strings — act on id directly (kick, ban, message).

Update your plugins: add id to the function header and recompile them with the new steam_owner.inc. A plugin compiled for 1.0.x still loads, but reads the index where it expects the authid. Compiling an old plugin against the new include fails with function heading differs from prototype, so it can't slip through by accident.

Changes​

  • Player index in the forward. It fires once the player is both approved by Steam and authorized by AMXX (client_authorized), whichever comes last, so id is always the right player. The player may still be connecting (is_user_connecting); kicking works either way.
  • Owner cache keeps one entry per player. A player who reconnects often no longer pushes everyone else out of the cache.
  • steam_get_owner() no longer returns an outdated owner after a player switches copies or Steam doesn't report the owner on a later connection.
  • Bigger owner cache: 256 players instead of 64.
  • Stricter STEAM_0:X:Y parsing: an out-of-range Y is rejected instead of being turned into a wrong SteamID.

Upgrading​

  1. Replace addons/amxmodx/modules/steam_owner_amxx_i386.so.
  2. Replace steam_owner.inc and recompile every plugin that uses client_steam_owner, with id added as its first parameter.
  3. Restart the server (modules load only at startup).
steam_get_owner() is unchanged.
Назад
Верх