Author Topic: [Suggestion] GetPlayerStat  (Read 733 times)

0 Members and 1 Guest are viewing this topic.

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
[Suggestion] GetPlayerStat
« on: December 28, 2007, 11:11:36 am »
GetPlayerStat(#, 'WeaponActive.#'): boolean;
With SetWeaponActive, this would get the active value..
but also advanced mode will effect it..

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
    • [eC] Official Website
Re: [Suggestion] GetPlayerStat
« Reply #1 on: December 28, 2007, 08:09:08 pm »
For reasons unknown, Advanced mode was coded so that which weapons are available is a client side effect; meaning the server doesn't know what weapons each player is allowed to choose from. Same applies for SetWeaponActive, the server doesn't save individual player's allowed weapon (that are changed from scripting); only global [dis]allowed are saved in the server's memory. So retrieving them via GetPlayerStat is not possible.