16.08.2013, 23:26
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