Skip to content

Releases: IS4Code/YSF

YSF 2.2

19 Sep 11:24
Compare
Choose a tag to compare

Additions:

  • HideVehicle, ShowVehicle, IsVehicleHidden.
  • SetPlayerSyncVehicleId and UpdatePlayerSyncData can also optionally set the main player structure fields.
  • SetPickupPos, SetPickupModel and SetPickupType allow skipping updating the pickup to players.
  • ShowPickupForPlayer, HidePickupForPlayer and SetPickupForPlayer.
  • OnPickupStreamIn/Out. Supports ShowPickupForPlayer and HidePickupForPlayer inside.

Changes:

  • IsBuildingRemovedForPlayer checks for proper containment of the whole sphere instead of just of overlapping the center.
  • SetPlayerSyncVehiclePosition also resets the internal bHasSetVehiclePos flag to enable syncing the vehicle data.
  • GetWeaponSlot and GetPlayerSyncWeapon now return negative integers on invalid values.

Fixes:

  • The array of used vehicle models is now correctly written to players on init.
  • SetPickupVirtualWorld hides the pickup in the old world correctly.
  • The "visible" flag is reset when a new player textdraw is created, fixing IsPlayerTextDrawVisible.

YSF 2.1

14 Nov 15:12
Compare
Choose a tag to compare

Additions:

  • Passive mode, controlled by the PassiveMode config option. Disables all hooks and spontaneous manipulation of server's memory, as well as natives that rely on that. If you want to load a script that uses these natives, use Native Fallback.
  • SetPlayerSyncPos, SetPlayerSyncVelocity, SetPlayerSyncRotationQuat, SetPlayerSyncVehicleSeat, SetPlayerSyncTrainSpeed for setting additional update packet fields.
  • SetPickupPos, SetPickupModel, SetPickupType, SetPickupVirtualWorld, allowing pickup changes without id changes.
  • Single cell-returning GetPlayerRawIp (faster than GetPlayerIp for storage and comparison).

Changes:

  • Added bool tags to some functions.
  • Added default values for config options.

Fixes:

  • Prevent crashes when a to-be-hooked function is not found.
  • Properly initialize per-player gangzones.
  • Remove the skin restrictions for SetPlayerSkinForPlayer.
  • Player list queries are ignored for more than 100 players, fixing returning garbage data to the client.
  • SetPlayerObjectMaterial and SetPlayerObjectMaterialText properly react to StorePlayerObjectsMaterial.
  • Fixed missing trampoline crash on some platforms.
  • Fixed hook address for ToggleChatTextReplacement on R2-2.

YSF 2.0

24 May 13:28
Compare
Choose a tag to compare

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 and GetPlayerConnectMode to control players' connection state. Set to DISCONNECT_ASAP to force reconnect.
  • ToggleCloseConnectionFix to disable code that causes "Connection closed." for reconnecting players.
  • GetPlayerSyncWeapon for obtaining player's weapon when GetPlayerWeapon 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 in OnPlayerClientGameInit).

Changes:

  • respawntime in SetVehicleSpawnInfo now takes seconds instead of milliseconds, consistent with other respawn delay changing functions.

Fixes:

  • HideNewObject corrected.
  • GangZoneGetPos works with UsePerPlayerGangZones 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.

R20-RC4

20 Dec 16:12
Compare
Choose a tag to compare
R20-RC4 Pre-release
Pre-release

Version for 0.3.DL included.

  • More sync functions for players and vehicles (see the include).
  • SendPlayerDeath for setting the player as dead for other players.
  • UpdatePlayerSyncData to send the sync data of a player to other players even if it hasn't been updated.
  • ShowPlayerForPlayer has an optional parameter to sync the skin.

R20-RC3

04 Dec 21:54
Compare
Choose a tag to compare
R20-RC3 Pre-release
Pre-release
  • GetPlayerBuildingsRemoved returns the count of removed buildings.
  • New sync functions (can be only used in OnPlayerUpdate): SetPlayerSyncKeys, SetPlayerSyncCameraFrontVector, SetPlayerSyncCameraPos, SetPlayerSyncCameraMode, SetPlayerSyncWeapon, SetPlayerSyncWeaponState.

R20-RC2

17 Nov 00:57
Compare
Choose a tag to compare
R20-RC2 Pre-release
Pre-release
  • Finally correct logprintf hook (done in assembly). Fixed memory leak in OnServerMessage. The hook will not be called from other threads anymore (since it's really bad).
  • Using default packing for standard types, increasing stability.
  • RespawnVehicle does not read uninitialized memory.
  • SetVehicleDead. Can be used to revive a drowned vehicle.

R20-RC1

27 Oct 12:46
Compare
Choose a tag to compare
R20-RC1 Pre-release
Pre-release

New functions: ResetPlayerNameInServerQuery, HideObjectForPlayer, ShowObjectForPlayer, IsObjectHiddenForPlayer, HideNewObjectsForPlayer, NewObjectsHiddenForPlayer, GetPlayerBuildingsRemoved and IsBuildingRemovedForPlayer, GetObjectSyncRotation, TogglePlayerGhostMode, GetPlayerGhostMode.

IsObjectMaterialSlotUsed, GetObjectMaterial, GetObjectMaterialText etc. get the last applied material instead of the first.

Minor bugfixes and improvements. Custom packet building fixed, strings are correctly returned etc.

logprintf hook calls the original function.

R19

12 Mar 10:59
Compare
Choose a tag to compare
R19
  • Added plugins/YSF.cfg - for more info open the file
  • Added ability to change RCON commands name
  • Added CallFunctionInScript
  • Added TextDrawSetStringForPlayer
  • Added exclusive RPC broadcast (for more info see YSF_examples.pwn)
  • Made execute() calls threaded and added a pawn callback to read command output
  • AttachPlayerObjectToPlayer has been rewritten from scratch, now it's more stable and uses less memory
  • Fixed rcon messages wasn't appearing in chat
  • Fixed GetActorAnimation
  • More sanity checks against crashes

Merged functions from IllidanS4's fork of YSF: https://github.com/IllidanS4/YSF - http://forum.sa-mp.com/showthread.php?t=609499

  • Merged GetSyncBounds, SetSyncBounds
  • Merged GetNPCCommandLine
  • Merged SetVehicleParamsSirenState, ToggleVehicleSirenEnabled, IsVehicleSirenEnabled, GetVehicleMatrix

Plus two callback has been merged too:
forward OnOutcomeScmEvent(playerid, issuerid, E_SCM_EVENT_TYPE:eventid, vehicleid, arg1, arg2);
forward OnServerQueryInfo(const ipaddr[], hostname[51], gamemode[31], language[31]); // YET DISABLED!!!

R18-2

23 Dec 12:22
Compare
Choose a tag to compare
  • Added YSF_ToggleOnServerMessage
  • Hopefully completly fixed vehicle health flashing
  • Fixed GetPlayerObject(Material/MaterialText) crash because the server wasn't stored any info related to materials with player objects.

This release has been removed because it has bugs. Mainly crash related to attached objects. Use r18 till I release r19

R18

15 Dec 21:29
Compare
Choose a tag to compare
R18

R18

  • Added ResetPlayerMarkerForPlayer (thanks to ziggi)
  • Added execute(command[]) which allow you to execute commands from the SA-MP server
  • Added protection against sproofing dialog id
  • Added ability to send console messages to players
  • Readded and fixed GetPlayerDialog which was removed before
  • Added ud, lr keys to (Set/Get)PlayerDisabledKeysSync
  • Major improvements in plugin code
  • Fixed GetVehiclePaintjob
  • Fixed OnClientCheckResponse wasn't calling for gamemodes (thanks to ziggi)
  • Fixed GetVehicleNumberPlate returned NULL as plate when vehicle has default plate
  • Fixed a bug when you used /rcon weather/gravity and afterward GetPlayerWeather/GetPlayerGravity wasn't updated
  • Fixed % character appearance in print messages
  • Improved RakServer hooks
  • RakServer::IsBanned, RakServer::Send has finally fixed on Linux
  • If YSF isn't loaded return of memory hacking functions will be cellmin
  • SAMP GDK has been removed, added custom hooks for callback hooking insted of using SAMPGDK
  • ModifyFlag has been removed, use instead SetServerRuleFlags
  • (Player)TextDrawGetFontSize has been removed, use insted (Player)TextDrawGetTextSize
  • GetMTUSize has been removed since it always returned the same value
  • Swapped some of SendBulletData parameters, for more info see the native