Jump to content

-FW- Shaanguy

Member
  • Content Count

    42
  • Joined

  • Last visited

  • Medals

Everything posted by -FW- Shaanguy

  1. how do i check the (vehicle player)'s AmmoType? then i can make a helipad, and when my chopper is near the helipad i wanted to rearm my vehicle, i also know when i type (vehicle player) setVehicleammo 1, will work too. But setVehicleAmmo does not work, when the vehicle ammo is 0, also then i can make hint format ["tihs vehicle magazines: %1", _My Vehicle Magazine Class Name]; i dont know how to check vehicle player's magazine class name, :confused::confused:
  2. -FW- Shaanguy

    addaction problem

    thanks XxAnimusxX, it worked, looks like _target is global, and player is local
  3. i want to see, if a player get near "Land_Money_F", then they get a addaction, like in the wasteland. Here is the script that i used: PickupIDS = []; PickupIDS = PickupIDS + [player addAction["<img image='icons\money.paa' width='32' height='32'/> Pickup Money", "client\actions\pickup_money.sqf", [], 1, false, false, "", 'player distance (nearestobjects [player, ["Land_Money_F"], 5] select 0) < 5']]; this works in Singleplayer, but when i go to multiplayer, when i go near a "Land_Money_F" i can see the addaction, and the problem is the other players cannot see the addaction. Only i can see?, i want all the players to see that addaction, in every "Land_Money_F", like in Wasteland, anyway the script i used its also copied from wasteland, it does not work. :butbut:
  4. -FW- Shaanguy

    addaction problem

    i didn't use "if (isServer)" or "if (isDedicated)" in my mission, i only wrote this in my init.sqf _____init.sqf_____ PickupIDS = []; PickupIDS = PickupIDS + [player addAction["<img image='icons\money.paa' width='32' height='32'/> Pickup Money", "client\actions\pickup_money.sqf", [], 1, false, false, "", 'player distance (nearestobjects [player, ["Land_Money_F"], 5] select 0) < 5']]; :confused::confused::confused::confused::confused::confused::confused: ----- I have made another mission for a test, i just only wrote that script, and start in on Multiplayer lan, to test. It does not work
  5. -FW- Shaanguy

    if getVaraible help

    is there a other script like this way? O_o. this script isn't working for me ---------- Post added at 17:04 ---------- Previous post was at 17:00 ---------- i found the good script , and it's working, i just have to remove that _price, and write a value. like this if (player getVariable "money" < 100) then { hint "You dont have enough cash to buy this gun"; } else { hint "you have bought a gun for $100"; player addweapon "classname"; //blah bla bla bla }
  6. this is the script i used, but this failed _price = 100; if (player getVariable "money" < _price) then { hint "You dont have enough cash to buy this gun"; } else { hint format ["You have bought a gun for $%1", _price]; player addweapon "classname"; //blah bla bla bla } just want to know, how to check a variable amount
  7. -FW- Shaanguy

    Set Variable & Get Variable help

    thanks Das Attorney, it worked :bounce3: now i can continue my mission
  8. -FW- Shaanguy

    Set Variable & Get Variable help

    I just want to make a deliver materials in my lan mission, but i cant continue the mission because of this problem. in my init --------------------- player setVariable ["materials",0]; and i made a waypoint, in my waypoint statements, i wrote this --------------------- player setVariable ["materials", + 100]; in the second waypoint my statement --------------------- player setVariable ["materials", + 5]; // and the variable does not become 105, the variable is changing to 5, this is my problem. i hope a other good :dj: scripter know how to solve this, because its really confusing :confused:
  9. -FW- Shaanguy

    ArmA 2/3 money (Buy a gun)

    //This script shows your money with color Add this + WalletCheck = parseText format [" <t color='#ffff00'>Cash = </t><t color='#FFFFFF'>%1</t><br/>", cash]; hintSilent WalletCheck;
  10. -FW- Shaanguy

    ArmA 2/3 money (Buy a gun)

    cash = cash + 100; You can use this script If you want to add cash. Example . You want to remove your cash. when you get inside a trigger. So put a trigger. And Put cash = cash + 100; To add $100 to add money. When you go inside the trigger
  11. I have finished making my gui, and how do I export and give it a classname. to open the dialog :confused: like test = createdialog "classnamehere";. HELP??? :confused::confused::confused:
  12. Can anyone help me please. I dont know how to use Arma 3 Gui editor in the Debug. I know how to create it but I dont know how to save it. I dont know how to make defines and stuff like that. Please help me how to save it and run it?. :confused::confused: I need a help in Arma 3 Gui editor. :butbut: . Not Arma 2.
  13. -FW- Shaanguy

    add action double issue

    This May help you ---------------------- http://www.tacticalgamer.com/arma-mission-development/188657-addaction-help.html
  14. -FW- Shaanguy

    Arma 2 Shopping script

    here is a script that, when you buy a weapon. It will be in your hand :D. In init.sqf Make A Trigger ACTIVATION : Radio Alpha Text : Wallet repeatedly In Trigger Code : Than you make a unit Name him "p1" p1's init Make a buy.sqf Code in buy.sqf Now start the game and press 0 0 and click wallet to see how much money has in your wallet. Go near the unit and buy your weapon :D. HOW TO ADD MONEY HOW TO REMOVE MONEY I hope this works for you :bounce3:
  15. Guys here is a hint colour basic script hintSilent parseText format["<t size='1' font='Zeppelin33' color='#ff0000'>Hello %1!</t>", name player]; hintSilent parseText format["<t size='1' font='Zeppelin33' color='#ff0000'>Write your text here</t>", nothing]; If you want find colour codes here http://www.colorpicker.com/
  16. Hello, I try my best, to find Random any objects spawning near buildings or towns. I have been looking this script like a month now. So is there anybody that can help me?. I Tried this. _houseList = getPos _trig nearObjects ["House",200]; { _c = 0; while { format ["%1", _x buildingPos _c] != "[0,0,0]" } do {_c = _c + 1}; if (_c > 0) then { _ranNum = floor(random _c); _crate = "USBasicAmmunitionBox" createVehicle [0,0,0]; _crate setPos (_x buildingPos _ranNum); }; sleep 0.123; } forEach _houseList; But it didnt work :icon_sad:
×