[Include] Simple Checkpoint Streamer
#6

hello sorry for my bad english
then already superb include

I add a function when we exit the CP see below

pawn Код:
#include <a_samp>
#include <CheckpointManager>
#define CP_1 0
#define CP_2 1
#define CP_3 2
#define CP_4 3
#define CP_5 4
pawn Код:
public OnGameModeInit()
{
    CreateCheckpoint(GLOBAL_OWNER_ID, CP_1, 1958.3783,1343.1572,15.3746);
    CreateCheckpoint(GLOBAL_OWNER_ID, CP_2, 2031.7180,1366.5226,10.8203);
    CreateCheckpoint(GLOBAL_OWNER_ID, CP_3, 1988.9958,1422.4563,9.1094);
    CreateCheckpoint(GLOBAL_OWNER_ID, CP_4, 1957.9187,1447.3143,10.8203);
    CreateCheckpoint(GLOBAL_OWNER_ID, CP_5, 1910.4789,1496.8055,13.6717);
    SetGameModeText("Blank Script");
    AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
    StartCheckpointSeeking();
    return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
  VerifyCheckpoint(playerid);
    return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
  VerifyCheckpointe(playerid);
    return 1;
}
pawn Код:
public OnCheckpointEnter(playerid, checkpointid){
    switch(checkpointid)
    {
     
      case CP_1:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "enter CP_1 ");

      }
      case CP_2:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "enter CP_2 ");

      }
      case CP_3:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "enter CP_3 ");

      }
      case CP_4:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "enter CP_4 ");

      }
      case CP_5:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "enter CP_5 ");

      }
    }
    return 1;
}
pawn Код:
public OnCheckpointEXIT(playerid, checkpointid){
    switch(checkpointid)
    {

      case CP_1:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "exit CP_1 de test");

      }
      case CP_2:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "exit CP_2 de test");

      }
      case CP_3:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "exit CP_3 de test");

      }
      case CP_4:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "exit CP_4 de test");

      }
      case CP_5:
      {
        SendClientMessage(playerid, 0xFFFFFFAA, "exit CP_5 de test");

      }
    }
    return 1;
}
Reply


Messages In This Thread
[Include] Simple Checkpoint Streamer - by -zriptarusk - 29.03.2009, 00:14
Re: [Include] Simple Checkpoint Manager - by Oxside - 03.04.2009, 15:50
Re: [Include] Simple Checkpoint Manager - by T RP [Tomorrows-RP.co.uk] - 03.04.2009, 19:42
Re: [Include] Simple Checkpoint Manager - by -zriptarusk - 03.04.2009, 21:25
Re: [Include] Simple Checkpoint Manager - by MazaHACKa - 09.04.2009, 12:43
Re: [Include] Simple Checkpoint Streamer - by cristab - 14.06.2009, 10:02
Re: [Include] Simple Checkpoint Streamer - by mr.b - 10.09.2009, 06:11
Re: [Include] Simple Checkpoint Streamer - by Blantas - 10.09.2009, 12:33
Re: [Include] Simple Checkpoint Streamer - by Calgon - 10.09.2009, 12:36
Re: [Include] Simple Checkpoint Streamer - by mr.b - 10.09.2009, 19:17
Re: [Include] Simple Checkpoint Streamer - by Jakku - 12.09.2009, 18:38
Re: [Include] Simple Checkpoint Streamer - by mr.b - 13.09.2009, 04:55
Re: [Include] Simple Checkpoint Streamer - by mr.b - 13.09.2009, 06:26
Re: [Include] Simple Checkpoint Streamer - by Blantas - 13.09.2009, 06:33
Re: [Include] Simple Checkpoint Streamer - by Jakku - 13.09.2009, 06:43
Re: [Include] Simple Checkpoint Streamer - by mr.b - 13.09.2009, 07:02
Re: [Include] Simple Checkpoint Streamer - by mihais17 - 13.09.2009, 07:05
Re: [Include] Simple Checkpoint Streamer - by Jakku - 13.09.2009, 09:00
Re: [Include] Simple Checkpoint Streamer - by Jakku - 14.09.2009, 14:26
Re: [Include] Simple Checkpoint Streamer - by [XST]O_x - 21.09.2009, 16:29
Re: [Include] Simple Checkpoint Streamer - by [XST]O_x - 21.09.2009, 17:43
Re: [Include] Simple Checkpoint Streamer - by [03]Garsino - 28.10.2009, 19:54
Re: [Include] Simple Checkpoint Streamer - by [03]Garsino - 28.10.2009, 20:17
Re: [Include] Simple Checkpoint Streamer - by DJDhan - 11.12.2009, 13:04
Re: [Include] Simple Checkpoint Streamer - by DJDhan - 11.12.2009, 15:13
Re: [Include] Simple Checkpoint Streamer - by Oxside - 26.12.2009, 16:44
Re: [Include] Simple Checkpoint Streamer - by [Bm]rap45 - 04.02.2010, 04:37
Re: [Include] Simple Checkpoint Streamer - by TheInnocentOne - 16.02.2010, 06:42
Re: [Include] Simple Checkpoint Streamer - by -zriptarusk - 16.02.2010, 11:18
Re: [Include] Simple Checkpoint Streamer - by TheInnocentOne - 18.02.2010, 02:33
Re: [Include] Simple Checkpoint Streamer - by Stgnature - 27.02.2014, 15:38
Re: [Include] Simple Checkpoint Streamer - by Gnabry - 27.02.2014, 16:03
Re: [Include] Simple Checkpoint Streamer - by laser50 - 03.07.2014, 15:08
Re: [Include] Simple Checkpoint Streamer - by Stinged - 03.07.2014, 15:37
Re: [Include] Simple Checkpoint Streamer - by greentarch - 03.07.2014, 15:39
Re: [Include] Simple Checkpoint Streamer - by laser50 - 03.07.2014, 15:45
Re: [Include] Simple Checkpoint Streamer - by KayJ - 04.07.2014, 08:29
Re: [Include] Simple Checkpoint Streamer - by Stinged - 04.07.2014, 09:22

Forum Jump:


Users browsing this thread: 1 Guest(s)