Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *- SetPlayerCheckpointEx Include (c) by Ap0llinaris.
- *- E-Mail: mirkogrunst@googlemail.com
- *- Skype: mirko19971
- *- Language: Deutsch/German & Englisch/English
- *- Include-Version: 1.0
- - Deutsch/German -
- *- Du hast einen Fehler gefunden? Dann sende ihn mir per E-Mail oder per Skype.
- - Englisch/English -
- *- You've found a bug? Then send it to me via e-mail or Skype.
- - Ende/End -
- - Deutsch/German:
- Ich hoffe, dass euch die Include gefällt. Hinterlasst mir doch ein kleines Feedback. ;)
- - Englisch/English:
- I hope you like the include. Just leave me a little feedback. ;)
- */
- #include <a_samp>
- #define INVALID_CHECKPOINT_ID -255
- #define INVALID_CHECKPOINT_TYPE -255
- new PlayerCheckpointID[MAX_PLAYERS];
- new PlayerCheckpointType[MAX_PLAYERS];
- stock SetPlayerCheckpointEx(playerid, Float:posX, Float:posY, Float:posZ, Float:cpSize, CheckPointID, CheckPointType){
- DisablePlayerCheckpoint(playerid);
- SetTimerEx("apCheckpoint", 100, 0, "dffffdd", playerid, posX, posY, posZ, cpSize, CheckPointID, CheckPointType);
- return;
- }
- forward apCheckpoint(playerid, Float:posX, Float:posY, Float:posZ, Float:cpSize, CheckPointID, CheckPointType);
- public apCheckpoint(playerid, Float:posX, Float:posY, Float:posZ, Float:cpSize, CheckPointID, CheckPointType){
- if(IsPlayerConnected(playerid)){
- PlayerCheckpointID[playerid] = CheckPointID;
- PlayerCheckpointType[playerid] = CheckPointType;
- SetPlayerCheckpoint(playerid, posX, posY, posZ, cpSize);
- }
- return;
- }
- stock DisablePlayerCheckpointEx(playerid){
- PlayerCheckpointID[playerid] = INVALID_CHECKPOINT_ID;
- PlayerCheckpointType[playerid] = INVALID_CHECKPOINT_TYPE;
- return;
- }
- stock GetPlayerCheckpointID(playerid){
- return PlayerCheckpointID[playerid];
- }
- stock GetPlayerCheckpointType(playerid){
- return PlayerCheckpointType[playerid];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement