15.01.2015, 18:53
Hello all...
I have a function called SetPlayerCheckpointEx...
However, Instead of replacing all SetPlayerCheckpoint's in my code, I want to replace the SetPlayerCheckpoint function completely...
How do I do so ?
I tried these though:
I have a function called SetPlayerCheckpointEx...
However, Instead of replacing all SetPlayerCheckpoint's in my code, I want to replace the SetPlayerCheckpoint function completely...
How do I do so ?
I tried these though:
pawn Код:
stock SetPlayerCheckpointEx(playerid, Float:x, Float:y, Float:z, Float:size)
{
AdminCP[playerid][0] = x;
AdminCP[playerid][1] = y;
AdminCP[playerid][2] = z;
return SetPlayerCheckpoint(playerid, x, y, z, size);
}
#if defined SetPlayerCheckpoint
#undef SetPlayerCheckpoint
#define SetPlayerCheckpoint SetPlayerCheckpointEx
#else
#define SetPlayerCheckpoint SetPlayerCheckpointEx
#endif