SA-MP Forums Archive
_ALS_ - How does it work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: _ALS_ - How does it work? (/showthread.php?tid=458475)



_ALS_ - How does it work? - RedFusion - 16.08.2013

I'm using this to "replace" the function SetPlayerHealth with AC_SetPlayerHealth, i'd appreciate if someone could explain how / why this works. What is the _ALS_ part for?

pawn Код:
stock AC_SetPlayerHealth(playerid, Float:health)
{
/*
.....
*/

}
#if defined _ALS_SetPlayerHealth
    #undef SetPlayerHealth
#else
    #define _ALS_SetPlayerHealth
#endif
#define SetPlayerHealth AC_SetPlayerHealth



Re: _ALS_ - How does it work? - Edix - 16.08.2013

https://sampforum.blast.hk/showthread.php?tid=85907

https://sampforum.blast.hk/showthread.php?tid=387600

Enjoy


Re: _ALS_ - How does it work? - iLuXing - 02.11.2014

Thank you .


Re: _ALS_ - How does it work? - DanishHaq - 02.11.2014

Quote:
Originally Posted by iLuXing
Посмотреть сообщение
Thank you .
Refrain from bumping old topics please.. this question was published a year ago, if you wanna thank them for something that was created a long time ago a reputation or a profile post / PM would do.