Skip to content

Latest fixes and improvements #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

Conversation

NexiusTailer
Copy link
Collaborator

@NexiusTailer NexiusTailer commented Jun 19, 2025

  1. Rewritten significant part of content in readme file, corrected all inaccuracies and fixed outdated notes, formatting
  2. Commented out all debug prints in both client and server, only warnings and errors are still shown
  3. Implemented SetVehicleParamsCarWindows and GetVehicleParamsCarWindows (#29)
  4. Updated test pawn scripts again, now they have consistent code style and don't declare callbacks which aren't used. They also use new latest callback names with the correct parameters
  5. Added OnBotStreamIn, OnBotStreamOut and OnBotTakeDamage callbacks. Also added IsBotStreamedIn and IsValidBot
  6. OnBotConnect renamed to OnBotCreate as there's logical mistake in the previous name (bots can't connect or disconnect). The second reason is to match naming of other similar events (e.g. OnMarkerCreate)
  7. OnPlayerClickWorldPlayer, OnPlayerClickWorldObject and OnPlayerClickWorldVehicle were merged into OnPlayerClickWorld united pawn callback. Now it pass entity type in type[] and id as entity ID (it may be playerid, vehicleid etc, depends on what type is in the previous parameter). This way it started support actors and bots too
  8. Added OnPlayerStuntStart and OnPlayerStuntFinish
  9. Added OnPlayerWeaponReload and ReloadPlayerWeapon, ReloadBotWeapon
  10. Implemented access for pawn scripts to traffic lights functionality, adding new functions GetTrafficLightsLocked, SetTrafficLightsLocked, GetTrafficLightState and SetTrafficLightState
  11. Added SetMinuteDuration and GetMinuteDuration
  12. Added SetJetpackWeaponEnabled and IsJetpackWeaponEnabled
  13. Fixed gangzones shifting due to wrong coords conversion (extra offsets were applied to them)
  14. Added BreakObject, RespawnObject, also IsObjectRespawnable and ToggleObjectRespawn
  15. Added IsPlayerDead, KillPlayer for players and IsVehicleBlown, BlowVehicle for vehicles
  16. Added ShowBotNameTag, SetBotName, SetBotFacingAngle and GetBotFacingAngle
  17. Fixed various issues with cursor integration in SA-MP dialogs, menus and class selection system
  18. Implemented EnableVehicleFriendlyFire and also fixed friendly fire (on foot) between teammates
  19. Implemented SetPlayerDrunkLevel and GetPlayerDrunkLevel (#81)
  20. Added ShowPlayerChat, GetPlayerIDFromName, GetVehicleCab, GetPlayerScoreBoardData and HasPlayerData
  21. Make teams hidden from scoreboard and only actual players shown there, like in SA-MP
  22. Fixed IsActorStreamedIn, it was broken because of wrong parameters in syscalls.lua
  23. Added obviously missed functions SetBotArmedWeapon and IsActorInMarker
  24. Amount of the ammo for weapon pickups by default will now match the values of GTA SA and SA-MP ones
  25. Fixed return values for GetPlayerSkillLevel and GetPlayerStat, as previously they returned float data instead of int
  26. Resource which used as internal dependency "Bone attach" was replaced with "attachToBones" for optimization purposes, SA-MP attach implementation was updated for the new changes and works fully correct with them (screenshot from tests). Clientside script "anim.lua" was updated too. Clientside script "mouselook.lua" is now removed, because it's not needed anymore (currently there is native support for mouse look on vehicles in spectating)
  27. Added support for alpha color values in SA-MP styled nametags. Now nametags will gradually disappear if parent element (player or bot) become invisible too. Here it is how it looks like (screenshot)
  28. The colors of nametag bars and vehicle blips was corrected to those which used exactly in SA-MP

consistent code style, declaring callbacks which only used, tweak parameters' names
for bots, traffic lights and others
- fix for getting player position in spectator mode
- fix for flying cars when players were warped in them instantly after streaming in
- fix for GetPlayerTeam behaviour when player is in class selection
- fix for ShowPlayerMarker behaviour with changing some mode combinations
- fix for format error handling when specifiers not match actual arguments by their count
- fix for dialog window keep staying after cursor were auto hidden
- hide teams from scoreboard, show only real players there
- always correct ammo amount on weapon pickups by default
and GetVehicleParamsCarWindows accordingly
- Corrected misinformation about scriptfiles location
- Added link for a_amx.inc when it's firstly mentioned
- Fix their shifting due to wrong coords convertation
- Cast RGBA colors better
SA-MP ones: friendly fire, drunk level
MTA ones: show chat, playerid from name, stunt events
* animation library was updated
* bone_attach was replaced with attachtobones (SA-MP attach function was updated for all changes as well)
* mouselook was removed in favor of native implementation
* unused functions were removed
make samp nametags disappear too if element become invisible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant