Difference between revisions of "TActivePlayer.WeaponActive"
(→Example) |
(→Description) |
||
Line 2: | Line 2: | ||
Access mode: W | Access mode: W | ||
==Description== | ==Description== | ||
− | Sets a weapon | + | Sets a weapon available/unavailable from the weapon menu for a certain player.<br> |
Weapon ID goes from 1 to 14 (Desert Eagles, HK .... Chainsaw, Law). | Weapon ID goes from 1 to 14 (Desert Eagles, HK .... Chainsaw, Law). | ||
Revision as of 01:20, 1 July 2013
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 (if i <> 12) then
Players[1].WeaponActive[i] := False; //deactivate all weapons but knife