Difference between revisions of "TActivePlayer.WeaponActive"
m (→Example: Made comment slightly easier to read by adding a space after the `//`) |
|||
Line 10: | Line 10: | ||
begin | begin | ||
for i := 1 to 14 do | for i := 1 to 14 do | ||
− | Players[ | + | Players[ID].WeaponActive[i] := i = 12; // deactivate all weapons but knife |
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:TActivePlayer]] | [[Category:TActivePlayer]] |
Revision as of 14:32, 23 February 2016
property TActivePlayer.WeaponActive[ID: Byte]: Boolean Access mode: W
Description
Sets a weapon available/unavailable from the weapon menu for a certain player.
Weapon ID goes from 1 to 14 (Desert Eagles, HK .... Chainsaw, Law).
Example
var i: byte;
begin
for i := 1 to 14 do
Players[ID].WeaponActive[i] := i = 12; // deactivate all weapons but knife