13.07.2010, 10:03
Would this work in an include for anything I might want to call on using a certain function?
Would this work, or is there a way it can done otherwise?
Код:
stock SetPlayerHealth2 (playerid, Float:health)
{SetPlayerHealth (playerid, health);
//call a custom callback/function here
}
stock SetPlayerPos2 (playerid, Float:x, Float:y, Float:z)
{SetPlayerPos (playerid, x, y, z);
//call a custom callback/function here
}
#define SetPlayerHealth SetPlayerHealth2
#define SetPlayerPos SetPlayerPos2

