YSF 2.0
Additions:
GroupPlayerObjects
in YSF.cfg to affect IDs of newly created per-player objects. If possible, a new per-player object will prefer slots already used for per-player objects by other players. Very useful when global and per-player objects are used together.SetPlayerConnectMode
andGetPlayerConnectMode
to control players' connection state. Set toDISCONNECT_ASAP
to force reconnect.ToggleCloseConnectionFix
to disable code that causes "Connection closed." for reconnecting players.GetPlayerSyncWeapon
for obtaining player's weapon whenGetPlayerWeapon
doesn't work.ToggleChatTextReplacement
to disable replacing possible unwanted characters in incoming chat messages by#
(%
, color and key codes).SendPlayerClientGameInit
for re-sending client initialization data and allowing changing some parameters (same as inOnPlayerClientGameInit
).
Changes:
respawntime
inSetVehicleSpawnInfo
now takes seconds instead of milliseconds, consistent with other respawn delay changing functions.
Fixes:
HideNewObject
corrected.GangZoneGetPos
works withUsePerPlayerGangZones 0
.- Fixed a crash with
StorePlayerObjectsMaterial 1
. - Fixed a
RespawnVehicle
crash on 0.3.7-R2-2. - Malformed packets are ignored in order not to cause crashes.