Hooking a function
#3

stock SetPlayerPosEx(playerid, Float: fX, Float: fY, Float: fZ)
{
printf("a");
stopChecking[playerid] = true;

acPos[playerid][0] = fX;
acPos[playerid][1] = fY;
acPos[playerid][2] = fZ;

SetPlayerPos(playerid, fX, fY, fZ);

stopChecking[playerid] = false;
return true;
}

#define SetPlayerPos SetPlayerPosEx

In top of your script ;/
Reply


Messages In This Thread
Hooking a function - by BaubaS - 12.10.2012, 12:53
Re: Hooking a function - by BaubaS - 12.10.2012, 14:51
Re: Hooking a function - by ReVo_ - 12.10.2012, 20:19

Forum Jump:


Users browsing this thread: 3 Guest(s)