SA-MP Forums Archive
How To Change Public OnPlayerEnterCheckpoint - 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: How To Change Public OnPlayerEnterCheckpoint (/showthread.php?tid=612974)



How To Change Public OnPlayerEnterCheckpoint - alishvasis - 23.07.2016

Hi ! How To Change
PHP код:
public OnPlayerEnterCheckpoint(playerid
To Other Things

For Example Change To

PHP код:
public Dub_OnPlayerEnterCheckpoint(playerid



Re: How To Change Public OnPlayerEnterCheckpoint - VVWVV - 23.07.2016

Use ALS hooks

E.g.
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
}
#if defined _ALS_OnPlayerEnterCheckpoint
    #undef OnPlayerEnterCheckpoint
#else
    #define _ALS_OnPlayerEnterCheckpoint
#endif
#define OnPlayerEnterCheckpoint Dub_OnPlayerEnterCheckpoint
#if defined Dub_OnPlayerEnterCheckpoint
forward Dub_OnPlayerEnterCheckpoint(playerid);
#endif