Jump to content

sina alex

Member
  • Content Count

    20
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About sina alex

  • Rank
    Private First Class

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. sina alex

    Eden 2.0

    if i use sectors of eden2 i need just install mod on server side or in all server and clients who want play it?
  2. sina alex

    [need help] GUI Editor

    i want use it on a dedicated mp server. if i use player for apply loadouts it will not apply to every player in server?? i want apply just on who use menu
  3. You can spawn a group in your trigger and for example name it mygroupname then use : Condition: This Active: Anyplayer On activation: Hint "oh you find us.."; { _x joinSilent (group player)} foreach units mygroupname; Then player move in trigger and group join him and hint text showed. You can use some sound too For better effect.
  4. sina alex

    [need help] GUI Editor

    I will test it,thank you
  5. hello i use gui editor and create a tablet. and whats the plan: the tablet that have 3 picture(each picture are clickable) and when player click picture a loadout apply on him as this code: question 1 : how i can tell who active addeventhandler to group him,and apply loadout on his group? question 2 : wich code i need to close tablet as a exit button? [] spawn { waitUntil {sleep 0.0000001; !isNull (findDisplay 46)}; methembyguimenu1 = (findDisplay 46) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 210) then { [] spawn ArsenalDevice; };"]; ArsenalDevice = { _display = findDisplay 46 createDisplay "RscDisplayEmpty"; _guiphone = _display ctrlCreate ["RscPicture", 1200]; _guiphone ctrlSetText "pb.paa"; _guiphone ctrlSetPosition [0.2375, 0.004, 0.5, 1]; _guiphone ctrlCommit 0; _buttenarmy = _display ctrlCreate ["RscActivePicture", 1201]; _buttenarmy ctrlAddEventHandler ["MouseButtonDown", "_this call fnc_armyloadout"]; _buttenarmy ctrlSetText "army.paa"; _buttenarmy ctrlSetPosition [0.38, 0.26, 0.2125, 0.08]; _buttenarmy ctrlCommit 0; _buttensns = _display ctrlCreate ["RscActivePicture", 1202]; _buttensns ctrlAddEventHandler ["MouseButtonDown", "_this call fnc_snloadout"]; _buttensns ctrlSetText "sns.paa"; _buttensns ctrlSetPosition [0.38, 0.36, 0.2125, 0.08]; _buttensns ctrlCommit 0; _buttennop = _display ctrlCreate ["RscActivePicture", 1203]; _buttennop ctrlAddEventHandler ["MouseButtonDown", "_this call fnc_noploadout"]; _buttennop ctrlSetText "nop.paa"; _buttennop ctrlSetPosition [0.38, 0.464, 0.2125, 0.08]; _buttennop ctrlCommit 0; fnc_armyloadout = { _pg = _this select 0; "laa" remoteExec ["playSound"]; hint "loading"; { removeAllWeapons _x; removeAllItems _x; removeAllAssignedItems _x; removeUniform _x; removeVest _x; removeBackpack _x; removeHeadgear _x; removeGoggles _x; _x addWeapon "CUP_arifle_G3A3_ris_black"; _x addPrimaryWeaponItem "CUP_20Rnd_762x51_G3"; _x addPrimaryWeaponItem "CUP_bipod_G3"; _x addWeapon "CUP_launch_RPG7V"; _x addSecondaryWeaponItem "CUP_optic_PGO7V3"; _x addSecondaryWeaponItem "CUP_PG7V_M"; _x addWeapon "rhsusf_weap_m9"; _x addHandgunItem "rhsusf_mag_15Rnd_9x19_JHP"; _x forceAddUniform "rpat_urban_1_uniform"; _x addVest "ARMY_V_PlateCarrier_ACU_L"; _x addBackpack "B_Carryall_oucamo"; _x addWeapon "rhsusf_bino_m24_ARD"; for "_i" from 1 to 5 do {_x addItemToUniform "ACE_packingBandage";}; for "_i" from 1 to 4 do {_x addItemToUniform "ACE_morphine";}; for "_i" from 1 to 4 do {_x addItemToUniform "ACE_tourniquet";}; for "_i" from 1 to 15 do {_x addItemToUniform "ACE_fieldDressing";}; for "_i" from 1 to 5 do {_x addItemToVest "CUP_20Rnd_TE1_Yellow_Tracer_762x51_G3";}; for "_i" from 1 to 2 do {_x addItemToVest "SmokeShell";}; for "_i" from 1 to 2 do {_x addItemToVest "rhsusf_mag_15Rnd_9x19_JHP";}; for "_i" from 1 to 2 do {_x addItemToVest "rhs_mag_m67";}; for "_i" from 1 to 49 do {_x addItemToBackpack "ACE_fieldDressing";}; for "_i" from 1 to 30 do {_x addItemToBackpack "ACE_morphine";}; for "_i" from 1 to 4 do {_x addItemToBackpack "ACE_tourniquet";}; _x addItemToBackpack "ACE_Flashlight_XL50"; _x addItemToBackpack "ACE_IR_Strobe_Item"; _x addItemToBackpack "ACE_EntrenchingTool"; for "_i" from 1 to 3 do {_x addItemToBackpack "ACE_epinephrine";}; _x addItemToBackpack "ACE_EarPlugs"; _x addItemToBackpack "ACE_SpraypaintBlue"; _x addItemToBackpack "ACE_SpraypaintBlack"; _x addHeadgear "marpat_urban_helmet"; _x linkItem "ItemMap"; _x linkItem "ItemCompass"; _x linkItem "tf_microdagr"; _x linkItem "tf_anprc152"; _x linkItem "ItemGPS"; _x linkItem "rhsusf_ANPVS_15"; } foreach _pg; }; }; };
  6. sina alex

    [need help] loadout script

    need add a line to fix the problem?? deleteGroup _pg;
  7. hey everyone i have a problem in this code: main tip : player stay near sign and in holdaction spawn a code that will apply new loadout on him but problem is there i see this loadout applyed on others too. server is dedicate code work but applyed on all not that player who call it. of course i use a group the caller to prevent from apply to all with this code _pg = group _caller; and code will apply to forEach units _pg; help me up to prevent to apply to others [s4, "LoadOUT", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_search_ca.paa", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", "_this distance _target < 2", "_caller distance _target < 2", {"laa" remoteExec ["playSound"];}, {hint "iw";}, {_pg = group _caller; { removeAllWeapons _x; removeAllItems _x; removeAllAssignedItems _x; removeUniform _x; removeVest _x; removeBackpack _x; removeHeadgear _x; removeGoggles _x; _x addWeapon "hlc_smg_MP5N"; _x addPrimaryWeaponItem "hlc_30Rnd_9x19_B_MP5"; _x addWeapon "rhsusf_weap_m9"; _x addHandgunItem "rhsusf_mag_15Rnd_9x19_FMJ"; _x forceAddUniform "B_BLK_BLK_soldier_F_uniform"; _x addVest "IRI_V_Sheriff_BA_TB"; _x addWeapon "Binocular"; _x addItemToUniform "FirstAidKit"; for "_i" from 1 to 2 do {_x addItemToUniform "hlc_30Rnd_9x19_B_MP5";}; _x addItemToUniform "SmokeShell"; _x addItemToUniform "MiniGrenade"; for "_i" from 1 to 3 do {_x addItemToVest "hlc_30Rnd_9x19_B_MP5";}; _x addItemToVest "rhsusf_mag_15Rnd_9x19_FMJ"; for "_i" from 1 to 5 do {_x addItemToVest "rhs_mag_mk84";}; for "_i" from 1 to 2 do {_x addItemToVest "MiniGrenade";}; _x addItemToVest "SmokeShell"; _x addHeadgear "H_PASGT_basic_black_F"; _x addGoggles "G_Balaclava_TI_G_blk_F"; _x linkItem "ItemMap"; _x linkItem "ItemGPS"; _x linkItem "ItemCompass"; _x linkItem "ItemWatch"; _x linkItem "ItemRadio"; _x linkItem "NVGoggles_OPFOR"; [_x,"Pad_A3_01","male01per"] call BIS_fnc_setIdentity; [_x,"rw_Service_qe"] call BIS_fnc_setUnitInsignia; } forEach units _pg; hint "NO"; }, {hint "Lm";}, [], 2, 1000, false, false, true ] remoteExec ["BIS_fnc_holdActionAdd",[0,-2] select isDedicated,true];
  8. like it? _f1 = createvehicle ["FlagCarrierChecked", getPos _unit, [], 0, "NONE"]; _f1 setObjectTextureGlobal [0,"p\1.jpg"]; ??
  9. thank for answer. i know it about formating a dialog or chat. and about killing board. now what i can do for add init to spawned objects via script??
  10. hello everybody i have a plan about marking th position where , the player killed. so in init.sqf in addEventHandler killed i add a sign(empty small wooden ), i try add command for give it init to set globaltexture command but not work. the sign just got spawn with no screen on it,(my init cmd not activated). its code : Player addEventHandler ["Killed", { params ["_unit", "_killer", "_instigator", "_useEffects"]; if (side _unit == independent) then { systemchat "_unit killed by _killer"; _f1 = createvehicle ["FlagCarrierChecked", getPos _unit, [], 0, "NONE"]; _f1 setVehicleInit "this obj setObjectTextureGlobal [0,'p\1.jpg']"; hint "You killed by _killer";nul = [] execVM "onPlayerKilled.sqf"; }; }]; help me to spawn that sign with my custom pic on dead pos.ty
  11. hello i have make a pvp so i have a few funactions what i must do to add them in scripts and call them in game i read a few topics about description.ext and cfgs but i cant know it any one plz give me better explain i have my funactions but i dont know where and how must define them
  12. now i read it fully and learned much new codes and tactics im create one for my and test it now
  13. thank for your direct replay i read that cod guess writeed directly by you for example first lines say every think is ok but i need time to know it line by line and extract my code from it im keep reading and research.
  14. Hello First thank you for help me to find new informations. Then i know arrays and params better, i read wiki pages you tell there about params and data types and arrays and varriables i read subjects: append,+,*,-,set varriable,get varriable But for my code i think deep,the only way was near in my mind is create var about _player and _object and _add id And save it on them then get it in next run Its like an view in my mind. What i can do on it?
  15. you are right , im new in scripting so i dont see most of wiki pages like params or i wasnt know it commands use and with near help of opusfmspol i look and follow page of params and first think i find in last page is it by you,i think its my problem fix [1, 2, [3, 4]] call { params ["_one", "_two", "_this"]; params ["_three", "_four"]; }; but a few question to inserting : [ _this select 0, _this select 1, _this select call { params ["_bim", "_player", "_fa"]; }; do its correct or not? or what i must do about it?! plz show me my coding problems , it help me to improve my codings. ty for you answer+helps.
×