SA-MP Forums Archive
[Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! (/showthread.php?tid=68443)

Pages: 1 2 3


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - Ben147 - 21.03.2010

Link?


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - jamesbond007 - 24.03.2010

link =( =/


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - Snoooopy - 24.03.2010

Cool , good job


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - rs2fun111 - 24.03.2010

i dont want buy some graves i want this streamer!


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - Micko9 - 15.04.2010

Quote:
Originally Posted by Yaheli
  • 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

reupload


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - Miny24 - 20.04.2010

Link is dead .. Reupload ... Thank


Re: [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! - Stunt-Andreas - 20.04.2010

Nice job