Official Soldat Forums

Server Talk => Scripting Discussions and Help => Topic started by: DorkeyDear on December 28, 2007, 11:11:36 am

Title: [Suggestion] GetPlayerStat
Post by: DorkeyDear 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..
Title: Re: [Suggestion] GetPlayerStat
Post by: EnEsCe 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.