Wreyth 0 Posted June 9, 2017 I have finally gotten the briefing working on my server for useful info such as rules and mission specific assets and stuff, however everytime a player respawns it keeps doubling just the server rules section for Player rules and Zeus rules. on initial spawn select its there once as it should be on intial spawn it's in there twice and every time a player respawns it adds another set of the player and zeus rules but it isn't doing it to any other diary entry. here is the briefing.sqf i am calling from init.sqf Briefing.sqf // since we're working with the player object here, make sure it exists waitUntil { !isNil {player} }; waitUntil { player == player }; switch (side player) do { case WEST: // BLUFOR briefing goes here { player creatediarysubject ["rules","Server Rules"]; player creatediarysubject ["revive","Reviving"]; player creatediarysubject ["assets","Zeus Assets"]; player creatediarysubject ["protection","Safe Zones"]; player createDiaryRecord["rules", ["Zeus Rules", "As Zeus/Moderator it is your job to control the missions and the flow of missions in a fair and reasonable manner. Weather you are a (Veteran) to Zeus or you are (New) to Zeus here are a few basic rules and guidlines to being a good Zeus/Moderator. <br/><br/>1. Make interesting missions, nobody likes bland and meaningless scenarios as that is what invade and annex is for, Give them an objective and story as to why they are there and what there goal is. <br/><br/>2. Find a balance in challenge. If you find players are completing things too easily , add more of a challenge but don't make it unbeatable or unreasonable. Be fair and think while putting yourelf in the players shoes. <br/><br/> 3. Don't just spawn units on top of players or next to them. Best method I have found is make reinforcement units and fly them in or have them drive in out of view as it adds a level of immersion and realism. <br/><br/>4. Set realistic limits on youself such as , Limit the number of reinforcments you have to send in, limit your units on what they can realisticly see or call in to a nearby unit. Nobody likes a unit magically running halfway across the map to target a specific group so think realisticly. <br/><br/>5. The Moderator's job is just that, to MODERATE the flow of the mission and lend assistance to the Zeus as well as be HQ for the ground forces. You are a MODERATOR not the ZEUS! <br/><br/>6. Last but not least......(SIGH)... Don't just drop random mortars and bombs on players.... have an actual mortar pit or artillery on the map for players to get rid of. A good Zeus uses fire support reasonibly such as , Getting a unit to move up or reposition by dropping a few shells NEAR them, Scenario flow as well as Immersion and realism. Don't just drop shells on top of players wiping a whole squad for no reason..... Use your head guys."]]; player createDiaryRecord["rules", ["Player Rules", "This server is setup based on the idea of having a good time with more available assets and features than standard vanilla Zeus. Please be respectful of other players and don't be immature ruining it for everyone. We are here to have fun, you want to screw around and be a troll or refuse to play the missions set then find another server to play on or make your own editor mission. Breaking these rules you are subject to Kick/Ban. <br/><br/> 1. No spawn/team killing or destroying Mission Assets. Repeated team killing and spawn killing may result in an immediate BAN not kick by the owner or logged in admins. <br/><br/> 2. No racism or race slander. <br/><br/> 3. Obey Zeus and Mission/Squad Leaders. <br/><br/> 4. Have fun like adults and not 5 year old trolls. "]]; player createDiaryRecord["revive", ["Reviving Players", "Combat medic roles have a purpose here. In order to revive a player you have to use a (Medkit) not a (Fak) . Fak's are for treating wounds."]]; player createDiaryRecord["protection", ["Safe Zones", "The initial base as well as the aircraft carrier are protected from fire and explosions to provide a safe place for non trolls to not get killed repeatedly.... Please Note! this currently also affects enemy units so defense missions at the safe zones marked in blue on the map are currently not possible. If you want to setup a defense postion or different base do it OUTSIDE of these zones on the map. The default spawn is always there an not editable by zeus due to repeated trolls moving and deleting it so you want a base elsewhere then tell players to spawn where you set."]]; player createDiaryRecord["assets", ["Map Assets", "1. AI Units on the Aircraft Carrier. <br/><br/>You can make them actually land on the carrier at there current positions with a little tweaking of height and position of placed waypoint as I have included Invisible Helipads on there. Please note it's not perfect due to current limitations in Arma regarding the Aircraft Carrier, but it is possible with a little playing around. <br/><br/>2. Empty Vehicles already placed on the carrier and starting base. <br/><br/>The starting vehicles are already setup on automatic respawn timer of 30 seconds if either A. Destroyed or B. No player within 500m of them. So keep that in mind if you delete them they won't respawn also if you set them as a respawn point and players go beyond 500m away from them they will respawn. <br/><br/>3. If you do not want players using the assets at base simply LOCK them as Zeus or Moderator. <br/><br/>4. Default Arsenal is editable but currently set to Nato Items and no Thermals for Realism and Immersion. If you want players to have other items or thermals simply edit the arsenal box. <br/><br/>5. Loadouts are currently set for good basic roles if you want players to have different loadouts simply drop a loadouts module and set them yourself. <br/><br/>6. Ares mod (Achilles expansion) is enabled on this server but not required to play as or use as Zeus/Moderator. Players are not required to have CBA or ARES to play. If you would like to take advantage of this powerful Zeus tool you need to have the current versions of both CBA (Community Base Addons) and Ares-Achillies expansion installed. Also for additional compostions and base assets ZEC - Custom Assets is installed but not required to play only required IF you want to take advantage of additional compositions. All mods can be found in the Steam Workshop."]]; }; case EAST: // REDFOR briefing goes here { }; case RESISTANCE: // RESISTANCE/INDEPENDENT briefing goes here { }; case CIVILIAN: // CIVILIAN briefing goes here { player creatediarysubject ["rules","Server Rules"]; player creatediarysubject ["revive","Reviving"]; player creatediarysubject ["assets","Zeus Assets"]; player creatediarysubject ["protection","Safe Zones"]; player createDiaryRecord["rules", ["Zeus Rules", "As Zeus/Moderator it is your job to control the missions and the flow of missions in a fair and reasonable manner. Weather you are a (Veteran) to Zeus or you are (New) to Zeus here are a few basic rules and guidlines to being a good Zeus/Moderator. <br/><br/>1. Make interesting missions, nobody likes bland and meaningless scenarios as that is what invade and annex is for, Give them an objective and story as to why they are there and what there goal is. <br/><br/>2. Find a balance in challenge. If you find players are completing things too easily , add more of a challenge but don't make it unbeatable or unreasonable. Be fair and think while putting yourelf in the players shoes. <br/><br/> 3. Don't just spawn units on top of players or next to them. Best method I have found is make reinforcement units and fly them in or have them drive in out of view as it adds a level of immersion and realism. <br/><br/>4. Set realistic limits on youself such as , Limit the number of reinforcments you have to send in, limit your units on what they can realisticly see or call in to a nearby unit. Nobody likes a unit magically running halfway across the map to target a specific group so think realisticly. <br/><br/>5. The Moderator's job is just that, to MODERATE the flow of the mission and lend assistance to the Zeus as well as be HQ for the ground forces. You are a MODERATOR not the ZEUS! <br/><br/>6. Last but not least......(SIGH)... Don't just drop random mortars and bombs on players.... have an actual mortar pit or artillery on the map for players to get rid of. A good Zeus uses fire support reasonibly such as , Getting a unit to move up or reposition by dropping a few shells NEAR them, Scenario flow as well as Immersion and realism. Don't just drop shells on top of players wiping a whole squad for no reason..... Use your head guys."]]; player createDiaryRecord["rules", ["Player Rules", "This server is setup based on the idea of having a good time with more available assets and features than standard vanilla Zeus. Please be respectful of other players and don't be immature ruining it for everyone. We are here to have fun, you want to screw around and be a troll or refuse to play the missions set then find another server to play on or make your own editor mission. Breaking these rules you are subject to Kick/Ban. <br/><br/> 1. No spawn/team killing or destroying Mission Assets. Repeated team killing and spawn killing may result in an immediate BAN not kick by the owner or logged in admins. <br/><br/> 2. No racism or race slander. <br/><br/> 3. Obey Zeus and Mission/Squad Leaders. <br/><br/> 4. Have fun like adults and not 5 year old trolls. "]]; player createDiaryRecord["revive", ["Reviving Players", "Combat medic roles have a purpose here. In order to revive a player you have to use a (Medkit) not a (Fak) . Fak's are for treating wounds."]]; player createDiaryRecord["protection", ["Safe Zones", "The initial base as well as the aircraft carrier are protected from fire and explosions to provide a safe place for non trolls to not get killed repeatedly.... Please Note! this currently also affects enemy units so defense missions at the safe zones marked in blue on the map are currently not possible. If you want to setup a defense postion or different base do it OUTSIDE of these zones on the map. The default spawn is always there an not editable by zeus due to repeated trolls moving and deleting it so you want a base elsewhere then tell players to spawn where you set."]]; player createDiaryRecord["assets", ["Map Assets", "1. AI Units on the Aircraft Carrier. <br/><br/>You can make them actually land on the carrier at there current positions with a little tweaking of height and position of placed waypoint as I have included Invisible Helipads on there. Please note it's not perfect due to current limitations in Arma regarding the Aircraft Carrier, but it is possible with a little playing around. <br/><br/>2. Empty Vehicles already placed on the carrier and starting base. <br/><br/>The starting vehicles are already setup on automatic respawn timer of 30 seconds if either A. Destroyed or B. No player within 500m of them. So keep that in mind if you delete them they won't respawn also if you set them as a respawn point and players go beyond 500m away from them they will respawn. <br/><br/>3. If you do not want players using the assets at base simply LOCK them as Zeus or Moderator. <br/><br/>4. Default Arsenal is editable but currently set to Nato Items and no Thermals for Realism and Immersion. If you want players to have other items or thermals simply edit the arsenal box. <br/><br/>5. Loadouts are currently set for good basic roles if you want players to have different loadouts simply drop a loadouts module and set them yourself. <br/><br/>6. Ares mod (Achilles expansion) is enabled on this server but not required to play as or use as Zeus/Moderator. Players are not required to have CBA or ARES to play. If you would like to take advantage of this powerful Zeus tool you need to have the current versions of both CBA (Community Base Addons) and Ares-Achillies expansion installed. Also for additional compostions and base assets ZEC - Custom Assets is installed but not required to play only required IF you want to take advantage of additional compositions. All mods can be found in the Steam Workshop."]]; }; case sideLogic: // Zeus briefing goes here { player creatediarysubject ["rules","Server Rules"]; player creatediarysubject ["revive","Reviving"]; player creatediarysubject ["assets","Zeus Assets"]; player creatediarysubject ["protection","Safe Zones"]; player createDiaryRecord["rules", ["Zeus Rules", "As Zeus/Moderator it is your job to control the missions and the flow of missions in a fair and reasonable manner. Weather you are a (Veteran) to Zeus or you are (New) to Zeus here are a few basic rules and guidlines to being a good Zeus/Moderator. <br/><br/>1. Make interesting missions, nobody likes bland and meaningless scenarios as that is what invade and annex is for, Give them an objective and story as to why they are there and what there goal is. <br/><br/>2. Find a balance in challenge. If you find players are completing things too easily , add more of a challenge but don't make it unbeatable or unreasonable. Be fair and think while putting yourelf in the players shoes. <br/><br/> 3. Don't just spawn units on top of players or next to them. Best method I have found is make reinforcement units and fly them in or have them drive in out of view as it adds a level of immersion and realism. <br/><br/>4. Set realistic limits on youself such as , Limit the number of reinforcments you have to send in, limit your units on what they can realisticly see or call in to a nearby unit. Nobody likes a unit magically running halfway across the map to target a specific group so think realisticly. <br/><br/>5. The Moderator's job is just that, to MODERATE the flow of the mission and lend assistance to the Zeus as well as be HQ for the ground forces. You are a MODERATOR not the ZEUS! <br/><br/>6. Last but not least......(SIGH)... Don't just drop random mortars and bombs on players.... have an actual mortar pit or artillery on the map for players to get rid of. A good Zeus uses fire support reasonibly such as , Getting a unit to move up or reposition by dropping a few shells NEAR them, Scenario flow as well as Immersion and realism. Don't just drop shells on top of players wiping a whole squad for no reason..... Use your head guys."]]; player createDiaryRecord["rules", ["Player Rules", "This server is setup based on the idea of having a good time with more available assets and features than standard vanilla Zeus. Please be respectful of other players and don't be immature ruining it for everyone. We are here to have fun, you want to screw around and be a troll or refuse to play the missions set then find another server to play on or make your own editor mission. Breaking these rules you are subject to Kick/Ban. <br/><br/> 1. No spawn/team killing or destroying Mission Assets. Repeated team killing and spawn killing may result in an immediate BAN not kick by the owner or logged in admins. <br/><br/> 2. No racism or race slander. <br/><br/> 3. Obey Zeus and Mission/Squad Leaders. <br/><br/> 4. Have fun like adults and not 5 year old trolls. "]]; player createDiaryRecord["revive", ["Reviving Players", "Combat medic roles have a purpose here. In order to revive a player you have to use a (Medkit) not a (Fak) . Fak's are for treating wounds."]]; player createDiaryRecord["protection", ["Safe Zones", "The initial base as well as the aircraft carrier are protected from fire and explosions to provide a safe place for non trolls to not get killed repeatedly.... Please Note! this currently also affects enemy units so defense missions at the safe zones marked in blue on the map are currently not possible. If you want to setup a defense postion or different base do it OUTSIDE of these zones on the map. The default spawn is always there an not editable by zeus due to repeated trolls moving and deleting it so you want a base elsewhere then tell players to spawn where you set."]]; player createDiaryRecord["assets", ["Map Assets", "1. AI Units on the Aircraft Carrier. <br/><br/>You can make them actually land on the carrier at there current positions with a little tweaking of height and position of placed waypoint as I have included Invisible Helipads on there. Please note it's not perfect due to current limitations in Arma regarding the Aircraft Carrier, but it is possible with a little playing around. <br/><br/>2. Empty Vehicles already placed on the carrier and starting base. <br/><br/>The starting vehicles are already setup on automatic respawn timer of 30 seconds if either A. Destroyed or B. No player within 500m of them. So keep that in mind if you delete them they won't respawn also if you set them as a respawn point and players go beyond 500m away from them they will respawn. <br/><br/>3. If you do not want players using the assets at base simply LOCK them as Zeus or Moderator. <br/><br/>4. Default Arsenal is editable but currently set to Nato Items and no Thermals for Realism and Immersion. If you want players to have other items or thermals simply edit the arsenal box. <br/><br/>5. Loadouts are currently set for good basic roles if you want players to have different loadouts simply drop a loadouts module and set them yourself. <br/><br/>6. Ares mod (Achilles expansion) is enabled on this server but not required to play as or use as Zeus/Moderator. Players are not required to have CBA or ARES to play. If you would like to take advantage of this powerful Zeus tool you need to have the current versions of both CBA (Community Base Addons) and Ares-Achillies expansion installed. Also for additional compostions and base assets ZEC - Custom Assets is installed but not required to play only required IF you want to take advantage of additional compositions. All mods can be found in the Steam Workshop."]]; }; }; // run this file again when respawning (only setup the killed EH once though) if ( isNil{player getVariable "mk_killedEHadded"} ) then { player addEventHandler ["killed", { [] spawn { waitUntil { alive player }; // waitUntil player has respawned execVM "briefing.sqf"; }; }]; player setVariable ["mk_killedEHadded", true]; }; Share this post Link to post Share on other sites
Tankbuster 1746 Posted June 9, 2017 Call it from initplayerlocal.sqf instead Share this post Link to post Share on other sites
Tankbuster 1746 Posted June 9, 2017 Your killed eventhandler is rerunning briefing.sqf each time the player respawns. You don't need to do this and it is why your briefings are increasing on each respawn 1 Share this post Link to post Share on other sites
Wreyth 0 Posted June 9, 2017 Thank you still new to scripting and event handleing. will try that out later tonight. thanks for the help! Share this post Link to post Share on other sites
Wreyth 0 Posted June 10, 2017 that fixed it CHEERS! ty Tankbuster...... spent 3 hours yesterday just getting the initial to work on my server and completely spaced initplayerlocal..... thank you! Share this post Link to post Share on other sites