1). To make your players respawn, and spawn with a specific weapon loadout, you need to use something similar to the following script
This one's called "ReloadGuy" and its by "Deadmeat"
_unitid = _this select 0
_defaultid = _this select 1
_sideid = _this select 2
removeallweapons _unitid
?(_sideid == "west"):goto "WEST"
?(_sideid == "east"):goto "EAST"
hint format ["error with reload trigger for unit %1",_unitid]
exit
#WEST
?(_defaultid == "soldier"):goto "WSoldier"
?(_defaultid == "sniper"):goto "WSniper"
?(_defaultid == "BlackOp"):goto "WBlackOp"
?(_defaultid == "Officer"):goto "WOfficer"
?(_defaultid == "Medic"):goto "WMedic"
hint format ["%1 has an invalid type when running reloadguy.sqs",_unitid]
goto "EXIT"
#WSoldier
_unitid addmagazine "Pipebomb"
_unitid addmagazine "SmokeShell"
_unitid addmagazine "M4"
_unitid addmagazine "M4"
_unitid addmagazine "M4"
_unitid addmagazine "LAWLauncher"
_unitid addmagazine "LAWLauncher"
_unitid addweapon "LAWLauncher"
_unitid addweapon "XMS"
_unitid selectweapon "XMS"
_unitid addweapon "NVGoggles"
_unitid addweapon "binocular"
goto "EXIT"
#WSniper
_unitid addmagazine "SmokeShell"
_unitid addmagazine "M21"
_unitid addmagazine "M21"
_unitid addmagazine "M21"
_unitid addmagazine "LAWLauncher"
_unitid addmagazine "LAWLauncher"
_unitid addweapon "M21"
_unitid addweapon "LawLauncher"
_unitid addweapon "binocular"
_unitid addweapon "NVGoggles"
_unitid selectweapon "M21"
goto "EXIT"
#WMedic
_unitid addmagazine "SmokeShell"
_unitid addmagazine "M4"
_unitid addmagazine "M4"
_unitid addmagazine "M4"
_unitid addweapon "XMS"
_unitid selectweapon "XMS"
_unitid addweapon "binocular"
_unitid addweapon "NVGoggles"
goto "EXIT"
#WBlackOp
_unitid addweapon "NVGoggles"
_unitid addweapon "binocular"
_unitid addmagazine "Pipebomb"
_unitid addmagazine "SmokeShell"
_unitid addmagazine "M4"
_unitid addmagazine "M4"
_unitid addmagazine "M4"
_unitid addmagazine "SkorpionMag"
_unitid addmagazine "SkorpionMag"
_unitid addmagazine "SkorpionMag"
_unitid addmagazine "LawLauncher"
_unitid addmagazine "LawLauncher"
_unitid addweapon "Skorpion"
_unitid addweapon "LawLauncher"
_unitid addweapon "binocular"
_unitid addweapon "XMS"
_unitid selectweapon "XMS"
goto "EXIT"
#EAST
?(_defaultid == "soldier"):goto "ESoldier"
?(_defaultid == "AT"):goto "EAt"
?(_defaultid == "AA"):goto "EAa"
?(_defaultid == "sniper"):goto "ESniper"
?(_defaultid == "BlackOp"):goto "EBlackOp"
?(_defaultid == "Engineer"):goto "EEngineer"
?(_defaultid == "Officer"):goto "EOfficer"
exit
#ESoldier
_unitid addmagazine "SmokeShell"
_unitid addmagazine "GrenadeLauncher"
_unitid addmagazine "GrenadeLauncher"
_unitid addmagazine "GrenadeLauncher"
_unitid addmagazine "AK47"
_unitid addmagazine "AK47"
_unitid addmagazine "AK47"
_unitid addweapon "NVGoggles"
_unitid addweapon "AK47GrenadeLauncher"
_unitid selectweapon "AK47GrenadeLauncher"
goto "EXIT"
#EAt
_unitid addmagazine "SmokeShell"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "RPGLauncher"
_unitid addmagazine "RPGLauncher"
_unitid addmagazine "RPGLauncher"
_unitid addweapon "NVGoggles"
_unitid addweapon "RPGLauncher"
_unitid addweapon "Steyr"
_unitid selectweapon "Steyr"
goto "EXIT"
#EAa
_unitid addmagazine "SmokeShell"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SteyrMag"
_unitid addweapon "NVGoggles"
_unitid addmagazine "9K32Launcher"
_unitid addweapon "9K32Launcher"
_unitid addweapon "Steyr"
_unitid selectweapon "Steyr"
goto "EXIT"
#ESniper
_unitid addmagazine "SmokeShell"
_unitid addmagazine "SVDDragunov"
_unitid addmagazine "SVDDragunov"
_unitid addmagazine "SVDDragunov"
_unitid addmagazine "SVDDragunov"
_unitid addweapon "binocular"
_unitid addweapon "NVGoggles"
_unitid addweapon "SVDDragunov"
_unitid selectweapon "SVDDragunov"
goto "EXIT"
#EBlackOp
_unitid addmagazine "PipeBomb"
_unitid addmagazine "SmokeShell"
_unitid addmagazine "HandGrenade"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SteyrMag"
_unitid addmagazine "SkorpionMag"
_unitid addmagazine "SkorpionMag"
_unitid addmagazine "SkorpionMag"
_unitid addmagazine "RPGLauncher"
_unitid addweapon "Skorpion"
_unitid addweapon "RPGLauncher"
_unitid addweapon "NVGoggles"
_unitid addweapon "binocular"
_unitid addweapon "Steyr"
_unitid selectweapon "Steyr"
goto "EXIT"
#EOfficer
_unitid addmagazine "GrenadeLauncher"
_unitid addmagazine "GrenadeLauncher"
_unitid addmagazine "AK47"
_unitid addmagazine "AK47"
_unitid addmagazine "AK47"
_unitid addmagazine "FlareRed"
_unitid addmagazine "FlareRed"
_unitid addweapon "NVGoggles"
_unitid addweapon "binocular"
_unitid addweapon "AK47GrenadeLauncher"
_unitid selectweapon "AK47GrenadeLauncher"
goto "EXIT"
#EXIT
exit
For a soldier to activate the script, you need
A Trigger for each soldier
a==0
b==0
repeating
condition::> alive A1
onActivation::> [A1,"soldier","west"] exec "ReloadGuy.sqs"
where
A1 is the name of the soldier unit you created
"soldier" is the "#Wsoldier" loadout in "reloadguy", and "west" is the side
You can of course customise the loadouts for each soldier type
What the script and trigger actually says is
When player A1of class "soldier" is alive, load him with the west weapons loadout for #Wsoldier
-----------------------------------------------------------------------------------------------------------------------
To change your flag. you need to change the line that states the flag texture
FlagE setflagtexture "rus_vlajka.pac"
I presume you want to show a nazi flag
so create one in jpg format and then save it in your mission folder then use the following line
FlagE setflagtexture "nazi.jpg"
the setflagtexture statement i use is within a script, if its in a trigger it may vary slightly
My East flag i call FlagE, yours may be called something different