Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Created by νєтι¢υѕ. This is a public source to anyone who wishes to have it
- // This script allows you to find out the classname of any Weapon/Magazine/Attachment the the player is carrying.
- //------------------------------------------------------------------------------------------------------------------------------
- // First create a .sqf file called "weaponfinder.sqf". And place the script below into it.
- //------------------------------------------------------------------------------------------------------------------------------
- if (alive player) then {
- _Weapon = weapons player;
- _Mag = magazines player;
- _WeaponsItem = primaryWeaponItems player;
- hintSilent parseText format ["<t color='#2E9AFE' size='1.3'>Weapon: </t><t color='#00FF00' size='1.2'><br/>%1</t><br/><t color='#2E9AFE' size='1.3'>Magazines: </t><br/><t color='#FF0000' size='1.2'>%2</t><br/><t color='#2E9AFE' size='1.3'>Attachments: </t><br/><t color='#FF00FF' size='1.2'>%3</t>", _Weapon, _Mag, _WeaponsItem];
- };
- //------------------------------------------------------------------------------------------------------------------------------
- // This is what you add to you "init.sqf" or whatever addAction array to execute the script above.
- //------------------------------------------------------------------------------------------------------------------------------
- player addAction ["<t size='1'>[Find Weapon Info]</t>", "weaponfinder.sqf", [], 1, false, true, 'true'];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement