but he said that for now that code is crashing in YSF.
In the future, when he will manage to fix it, you could add the optional dependency for YSF in this plugin or you could do that now and server owners could benefit of this immediately after YSF adds those functions. (anyway, I'm pretty sure kurta999 will manage to solve that problem and add them officially) You could have a check like
#if defined SetPlayerAttachedObjForPlayer
where needed.
This would benefit servers because it would be automatically converted at compile time to use YSF and because other players won't see the attached objects disappearing, only the player who is aiming.
For https://github.com/Agneese-Saini/SA-MP-Files/blob/master/pawno/include/attachments.inc:
As you may know, @kurta999 tried to add player attachment functions per-player:
but he said that for now that code is crashing in YSF.
In the future, when he will manage to fix it, you could add the optional dependency for YSF in this plugin or you could do that now and server owners could benefit of this immediately after YSF adds those functions. (anyway, I'm pretty sure kurta999 will manage to solve that problem and add them officially) You could have a check like
#if defined SetPlayerAttachedObjForPlayer
where needed.This would benefit servers because it would be automatically converted at compile time to use YSF and because other players won't see the attached objects disappearing, only the player who is aiming.