v1.0.91 parche
Server-side passwords, friendly fire and weapon rules, and no more stuck players
14cambios

Server-side passwords, friendly fire and weapon rules, and no more stuck players
14cambios

[02] Versión
Room passwords are now checked by the server, players no longer get stuck after a match, and new settings control friendly fire and the allowed weapons.
shared/config.lua: Config.FriendlyFire and Config.AllowedWeapons. Copy them into your config. If you use addon weapons, add them to Config.AllowedWeapons as name = true, without the weapon_ prefix, or they are replaced with the Carbine Rifle.Config.Debug is now false by default.DM_IsPlayerDead. If you wrote your own adapter in client/custom/ambulances/, rename it there.shared/config.lua, client/custom/ and server/custom/ changed. If you edited them, copy your edits into the new versions.Replace every file in the resource, except what you edited yourself:
shared/config.lua, utils.lua.client/main.lua, client/phone.lua.client/custom/ambulances/*.lua, client/custom/framework/*.lua, client/custom/inventory/ox.lua.server/main.lua, server/phone.lua, server/updater.lua.server/custom/main.lua, server/custom/framework/*.lua.server/modules/selfcheck.lua, server/modules/throttle.lua — new.html/*.fxmanifest.lua.Room passwords were sent to every player along with the room list. The server now checks them, and players never receive them.
The server checks every value players send and limits how fast each player can trigger deathmatch actions. Room names are escaped so they can't inject HTML into the menu.
`Config.FriendlyFire` in `shared/config.lua` sets the default for new rooms. It defaults to `false`, which means the server cancels gun, melee and knife damage between teammates during a match.
`Config.AllowedWeapons` in `shared/config.lua` lists the weapons players can pick when creating a room. A weapon that isn't on the list is replaced with the Carbine Rifle. Add addon weapons as `name = true`, without the `weapon_` prefix.
Each room uses its own routing bucket, so matches don't interfere with each other or with the rest of the server. Rooms are cleaned up when the resource stops.
When the resource starts, the console warns you about common setup problems.
Avoids clashes with other ambulance or medical scripts. If you wrote your own ambulance adapter in `client/custom/ambulances/`, rename the function in it.
The room list, team page and password page were improved. The menu no longer downloads jQuery or Tailwind from the internet.
One console line shows your version and status. When an update is available, it lists up to 3 highlights.
The manifest lists its files explicitly and the paths of the editable files are fixed. `Config.Debug` is now `false` by default.
A password with 11 to 16 characters was saved empty, so the room had no password. It now saves correctly.
After leaving, dying or disconnecting, a player could stay stuck in a room or a match. They now leave cleanly.
The end of a match and of each round could run more than once. Weapons are now also removed when a player leaves a match.
A death could be counted when the victim wasn't actually dead.