Azz -GUN- 0 Posted November 3, 2002 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">#Start ?(Param1 == 1): goto "HUNT" ?(Param1 == 2): goto "M21" ?(Param1 == 3): goto "SVD" #Loop ?(!alive player): goto "Wait" goto "Loop" #Wait ~10 goto "Start" #SVD removeAllWeapons player player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addWeapon "SVDDragunov" player addWeapon "Binocular" player addWeapon "NVGoggles" goto "Loop" #M21 removeAllWeapons player player addMagazine "M21" player addMagazine "M21" player addMagazine "M21" player addMagazine "M21" player addWeapon "M21" player addWeapon "Binocular" player addWeapon "NVGoggles" goto "Loop" #HUNT removeAllWeapons player player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addWeapon "HuntingRifle" player addWeapon "Binocular" player addWeapon "NVGoggles" goto "Loop" <span id='postcolor'> Share this post Link to post Share on other sites
Azz -GUN- 0 Posted November 3, 2002 I fixed problem i have 2 scripts now init.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> player addEventHandler ["killed",{_this exec "wep.sqs"}] ?(Param1 == 1): goto "HUNT" ?(Param1 == 2): goto "M21" ?(Param1 == 3): goto "SVD" #SVD removeAllWeapons player player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addWeapon "SVDDragunov" player addWeapon "Binocular" player addWeapon "NVGoggles" exit #M21 removeAllWeapons player player addMagazine "M21" player addMagazine "M21" player addMagazine "M21" player addMagazine "M21" player addWeapon "M21" player addWeapon "Binocular" player addWeapon "NVGoggles" exit #HUNT removeAllWeapons player player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addWeapon "HuntingRifle" player addWeapon "Binocular" player addWeapon "NVGoggles" exit <span id='postcolor'> wep.sqs </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE"> ~10 ?(Param1 == 1): goto "HUNT" ?(Param1 == 2): goto "M21" ?(Param1 == 3): goto "SVD" #SVD removeAllWeapons player player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addMagazine "SVDDragunov" player addWeapon "SVDDragunov" player addWeapon "Binocular" player addWeapon "NVGoggles" exit #M21 removeAllWeapons player player addMagazine "M21" player addMagazine "M21" player addMagazine "M21" player addMagazine "M21" player addWeapon "M21" player addWeapon "Binocular" player addWeapon "NVGoggles" exit #HUNT removeAllWeapons player player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addMagazine "HuntingRifleMag" player addWeapon "HuntingRifle" player addWeapon "Binocular" player addWeapon "NVGoggles" exit <span id='postcolor'> Share this post Link to post Share on other sites