[Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer!
#1

  • Yaheli's Checkpoint Streamer
    v1.1
    __________________________________________________ __________________________________________________ _________________________________________________

    - Description
    • This .inc file adds functions which allow you to stream checkpoints. The include uses OnPlayerUpdate to stream the checkpoints and update player location.
    - Included Functions

    pawn Code:
    SetStreamCheckpoint(Float:x, Float:y, Float:z, Float:size, Float:View_Distance);

    DisableStreamCheckpoint(checkpointid);

    SetPlayerStreamCheckpoint(playerid, Float:x, Float:y, Float:z, Float:size, Float:View_Distance);

    DisablePlayerStreamCheckpoint(playerid, checkpointid);

    SetStreamCheckpointPos(checkpointid, Float:x, Float:y, Float:z);

    SetStreamCheckpointSize(checkpointid, Float:radius);

    SetStreamCheckpointViewDistance(checkpointid, Float:View_Distance);

    StreamCheckpointsForPlayer(playerid);

    GetDistanceToCheckpoint(Float:X, Float:Y, Float:Z, checkpointid);

    IsPlayerInStreamCheckpoint(playerid, checkpointid);
    pawn Code:
    YCP_OnGameModeInit(); - Must be placed in OnGameModeInit for the streamer to work.

    YCP_OnPlayerConnect(playerid); - Must be placed in OnPlayerConnect for the streamer to work.

    YCP_OnPlayerUpdate(playerid); - Must be placed in OnPlayerUpdate for the streamer to work. // NOTE: It can be placed under a timer to but it must be somewhere for the streamer to work.

    YCP_OnPlayerEnterCheckpoint(playerid); - Must be placed in OnPlayerEnterCheckpoint for the streamer to work.
    - Callbacks
    • OnPlayerEnterStreamCheckpoint(playerid, checkpointid);
      • In order to compile with no errors you must add this public into the GM or FS.
        You will use this as a "new" OnPlayerEnterCheckpoint and it even includes a 'checkpointid' parameter.
    • OnPlayerExitStreamCheckpoint(playerid, checkpointid);
      • To add this callback to your GM just add this code:
Code:
forward OnPlayerExitStreamCheckpoint(playerid, checkpointid);
public OnPlayerExitStreamCheckpoint(playerid, checkpointid)
{
  return 1;
}
- Download

http://www.zezombia.com/upload/Yaheli/YCP.inc

Reply


Messages In This Thread
[INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 10.03.2009, 13:13
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by NigNog1 - 10.03.2009, 13:16
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Patch-PT - 10.03.2009, 13:31
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 10.03.2009, 13:45
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by lesley - 10.03.2009, 13:46
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by SniperX64 - 10.03.2009, 14:14
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by SHlZNlT - 10.03.2009, 14:20
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by NigNog1 - 10.03.2009, 14:47
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 10.03.2009, 15:03
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by pspleo - 10.03.2009, 15:04
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by NigNog1 - 10.03.2009, 15:08
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 10.03.2009, 15:31
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by NigNog1 - 10.03.2009, 15:53
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 10.03.2009, 16:27
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by NigNog1 - 10.03.2009, 18:44
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by MenaceX^ - 10.03.2009, 22:54
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 14.03.2009, 19:45
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by smoker08 - 28.03.2009, 19:46
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Emrets61 - 30.03.2009, 09:08
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 30.03.2009, 17:42
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Emrets61 - 30.03.2009, 17:53
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by ReV. - 30.03.2009, 19:09
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Dujma - 30.03.2009, 19:38
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Yaheli_Faro - 30.03.2009, 21:14
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Dujma - 30.03.2009, 21:36
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Emrets61 - 31.03.2009, 10:17
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Dujma - 31.03.2009, 10:19
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Emrets61 - 31.03.2009, 10:21
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Panch1t0 - 07.04.2009, 20:32
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by -zriptarusk - 07.04.2009, 20:36
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Remis93 - 08.04.2009, 11:20
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Gamer007 - 23.05.2009, 14:50
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by @TheShadow@ - 02.08.2009, 17:02
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by nuriel8833 - 02.08.2009, 19:33
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by nesty - 03.08.2009, 02:09
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by James_Alex - 11.08.2009, 15:09
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by [SW]thekillaer - 29.11.2009, 17:50
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by DJDhan - 10.12.2009, 11:46
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by bruno.cmd - 19.01.2010, 17:21
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by rs2fun111 - 07.02.2010, 13:58
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Ben147 - 21.03.2010, 15:27
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by jamesbond007 - 24.03.2010, 16:52
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Snoooopy - 24.03.2010, 17:01
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by rs2fun111 - 24.03.2010, 23:15
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Micko9 - 15.04.2010, 18:01
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Miny24 - 20.04.2010, 12:45
Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - by Stunt-Andreas - 20.04.2010, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)