Mirek 166 Posted July 21, 2014 (edited) Hi I made this simple script: if (isServer) then { removeAllWeapons Kmirek; //main weapon 1slot Kmirek addWeapon "CZ805_A2_SD_ACR"; //sidearm 1slot //main ammo 12slots Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "ACE_30Rnd_556x45_S_Stanag"; Kmirek addMagazine "SmokeShell"; Kmirek addMagazine "ACE_Battery_Rangefinder"; //Side ammo 8slots Kmirek addMagazine "ACE_Epinephrine"; Kmirek addMagazine "ACE_LargeBandage"; Kmirek addMagazine "ACE_Morphine"; Kmirek addMagazine "ACE_Medkit"; Kmirek addMagazine "ACE_Epinephrine"; Kmirek addMagazine "ACE_LargeBandage"; Kmirek addMagazine "ACE_Morphine"; Kmirek addMagazine "ACE_Medkit"; //Medical 3slots Kmirek addMagazine "ACE_Bandage"; Kmirek addMagazine "ACE_LargeBandage"; Kmirek addMagazine "ACE_Tourniquet"; //Binoculars 2slots Kmirek addWeapon "ACE_Rangefinder_OD"; //Radio 2 slots stealing slots from belt gear //Belt Gear 12slots - 3for default gear Kmirek addWeapon "ACE_Earplugs"; Kmirek addWeapon "ACE_KeyCuffs"; Kmirek addWeapon "ACE_DAGR"; Kmirek addWeapon "ACE_GlassesGasMask_S10"; Kmirek addWeapon "ACE_MineMarkers_Light"; removeAllWeapons Rotny; //main weapon 1slot Rotny addWeapon "CZ805_A2_SD_ACR"; //sidearm 1slot Rotny addWeapon "CZ_75_SP_01_PHANTOM_SD"; //main ammo 12slots Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "SmokeShell"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; Rotny addMagazine "ACE_30Rnd_556x45_S_Stanag"; //Side ammo 8slots Rotny addMagazine "ACE_Epinephrine"; Rotny addMagazine "ACE_LargeBandage"; Rotny addMagazine "ACE_Morphine"; Rotny addMagazine "ACE_Medkit"; Rotny addMagazine "ACE_Epinephrine"; Rotny addMagazine "ACE_LargeBandage"; Rotny addMagazine "ACE_Morphine"; Rotny addMagazine "ACE_Medkit"; //Medical 3slots Rotny addMagazine "ACE_Bandage"; Rotny addMagazine "ACE_LargeBandage"; Rotny addMagazine "ACE_Tourniquet"; //Binoculars 2slots //Radio 2 slots stealing slots from belt gear //Belt Gear 12slots - 3for default gear Rotny addWeapon "ACE_Earplugs"; Rotny addWeapon "ACE_KeyCuffs"; Rotny addWeapon "ACE_GlassesGasMask_S10"; removeAllWeapons Pancerovnik; //main weapon 1slot Pancerovnik addWeapon "CZ805_A2_SD_ACR"; //Launcher 1slot //sidearm 1slot Pancerovnik addWeapon "CZ_75_P_07_DUTY"; //main ammo 12slots Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pancerovnik addMagazine "SmokeShell"; Pancerovnik addMagazine "SmokeShell"; //Side ammo 8slots Pancerovnik addMagazine "ACE_16Rnd_9x19_CZ75"; Pancerovnik addMagazine "ACE_16Rnd_9x19_CZ75"; Pancerovnik addMagazine "ACE_Epinephrine"; Pancerovnik addMagazine "ACE_LargeBandage"; Pancerovnik addMagazine "ACE_Morphine"; Pancerovnik addMagazine "ACE_Medkit"; //Medical 3slots Pancerovnik addMagazine "ACE_Bandage"; Pancerovnik addMagazine "ACE_LargeBandage"; Pancerovnik addMagazine "ACE_Tourniquet"; //Binoculars 2slots //Radio 2 slots stealing slots from belt gear //Belt Gear 12slots - 3for default gear Pancerovnik addWeapon "ACE_Earplugs"; Pancerovnik addWeapon "ACE_KeyCuffs"; Pancerovnik addWeapon "ACE_GlassesGasMask_S10"; removeAllWeapons Pomocnik; //main weapon 1slot Pomocnik addWeapon "CZ805_A2_SD_ACR"; //sidearm 1slot //main ammo 12slots Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "SmokeShell"; Pomocnik addMagazine "ACE_Battery_Rangefinder"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addMagazine "ACE_30Rnd_556x45_S_Stanag"; Pomocnik addWeapon "ACE_Earplugs"; Pomocnik addWeapon "ACE_KeyCuffs"; Pomocnik addWeapon "ACE_GlassesGasMask_S10"; Pomocnik addMagazine "ACE_Epinephrine"; Pomocnik addMagazine "ACE_LargeBandage"; Pomocnik addMagazine "ACE_Morphine"; Pomocnik addMagazine "ACE_Medkit"; //Contents of Transport car auto addMagazineCargoGlobal ["18Rnd_9x19_PhantomSD",10]; auto addMagazineCargoGlobal ["ACE_Battery_Rangefinder",6]; auto addMagazineCargoGlobal ["PipeBomb",2]; auto addMagazineCargoGlobal ["ACE_16Rnd_9x19_CZ75",10]; auto addMagazineCargoGlobal ["ACE_Medkit",8]; auto addMagazineCargoGlobal ["ACE_Epinephrine",8]; auto addMagazineCargoGlobal ["ACE_LargeBandage",16]; auto addMagazineCargoGlobal ["ACE_Morphine",8]; auto addMagazineCargoGlobal ["ACE_30Rnd_556x45_S_Stanag",20]; auto addWeaponCargoGlobal ["CZ_75_P_07_DUTY",4]; auto addWeaponCargoGlobal ["CZ805_A2_SD_ACR",4]; auto addWeaponCargoGlobal ["CZ_75_SP_01_PHANTOM_SD",2]; auto addWeaponCargoGlobal ["ACE_Rangefinder_OD",2]; auto addWeaponCargoGlobal ["ACE_Earplugs",8]; auto addWeaponCargoGlobal ["ACE_KeyCuffs",8]; auto addWeaponCargoGlobal ["ACE_GlassesGasMask_S10",2]; auto addWeaponCargoGlobal ["ACE_MineMarkers_Light",2]; tskcapture1 = player createSimpleTask ["Arrest Smugler"]; tskcapture1 setSimpleTaskDescription ["Local police has tip on Long wanted russian weapons smugler´s hideout in ruins of local willage. You will be inserted via Offroad car in close proximity to the willage remnants. Your task is to Arrest weapons smugler, and bring him to the waiting police car. ", "Arrest Smugler!", "Smugler"]; tskcapture1 setTaskState "Assigned"; player setCurrentTask tskcapture1; }; Script is called from missions "init.sqf" It is supposed to change gear of players, add some things to vehicle cargo, and start an task for players. In singleplayer everithing works. In multiplayer, only the part that ads some cargo to vehicle works. The player gear changes doesnt work at all, and the task assigment works only for hosting player. Can anyone help? Edit: Noticed iam in wrong forum. Can anyone move me to Misson creating? THX Edited July 25, 2014 by Mirek Share this post Link to post Share on other sites
Mirek 166 Posted July 26, 2014 Sorted it out. it all works now. Thread can be closed. Share this post Link to post Share on other sites