|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Mar 2009
Location: Praia da Vitória, Azores
Posts: 72
Reputation: 5
|
[3Play : Checkpoint Streamer Library] Include File Features:
How does it work? In the following example, I will create a simple bank checkpoint inside the City Planning Dpt. at Las Venturas 1. We need the include statement at the top of the script in order to include the CheckpointManager.inc pawn Code:
2. Here I will define a number that identifies my Checkpoint right next to the includes pawn Code:
3. Somewhere inside GameModeInit, I will create my checkpoint and set its interior to 3 (City Planning Dpt Interior ID) pawn Code:
4. Very important: You need to call "VerifyCheckpoint" method at OnPlayerEnterCheckpoint. Like this: pawn Code:
This will make the ChpManager check which checkpoint the player has entered and fire a more specified function: pawn Code:
Simple isn't it? Functions Included: CreateCheckpoint(ownerid, chpid, Float osX, Float osY, Float osZ); Creates a checkpointSetCheckpointInterior(chpid, interiorid); Sets the checkpoint interior SetCheckpointVirtualWorld(chpid, VirtualWorldID); Sets the checkpoint virtual world ToggleCheckpointActive(chpid, bool:active); Makes the checkpoint active or innactive ChangeCheckpointOwner(chpid, owner); Changes the checkpoint owner RemoveCheckpoint(chpid); Removes a checkpoint StartCheckpointSeeking(); Makes the manager start seeking for nearby checkpoints StopCheckpointSeeking(); Makes the manager stop seeking for nearby checkpoints VerifyCheckpoint(playerid); Must be called at OnPlayerEnterCheckpoint Source Download: Version 0.1.1b ![]() - Fixed a major Checkpoint Streaming Bug. Download please |
|
|
|
|
|
#2 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Feb 2009
Posts: 461
Reputation: 0
|
REALLY NICE
But the post looks some gaotic! |
|
|
|
|
|
#3 | |
|
Little Clucker
![]() Join Date: Apr 2009
Posts: 19
Reputation: 0
|
Quote:
|
|
|
|
|
|
|
#4 | ||
|
Big Clucker
![]() ![]() Join Date: Mar 2009
Location: Praia da Vitória, Azores
Posts: 72
Reputation: 5
|
Quote:
It was my first release. I kinda didn't knew how to do it xD |
||
|
|
|
|
|
#5 |
|
Little Clucker
![]() Join Date: Feb 2009
Posts: 19
Reputation: 1
|
VERY VERY COOL!!!!!
THANKS!
|
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Oct 2008
Location: france / french 68
Posts: 1,801
Reputation: 17
|
hello sorry for my bad english
then already superb include I add a function when we exit the CP see below pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
|
|
|
|
|
|
#7 |
|
Little Clucker
![]() Join Date: Jun 2008
Posts: 41
Reputation: 0
|
can you add checkpoint size?
|
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2009
Posts: 337
Reputation: 8
|
Here you are:
http://blantas.paste.lt/paste/093419...902253927576bb ![]() I added a size parameter: Code:
CreateCheckpoint(ownerid, chpid, Float:posX, Float:posY, Float:posZ, Float:size);
|
|
|
|
|
|
#9 |
|
Godfather
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jan 2009
Location: England
Posts: 6,540
Reputation: 697
|
Interesting. Nice release. I'll probably use this.
|
|
|
|
|
|
#10 | |
|
Little Clucker
![]() Join Date: Jun 2008
Posts: 41
Reputation: 0
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [INCLUDE] ICPM - Invisible CheckPoint Manager - by Epsilon | _[HuN]_Epsilon_ | Filterscripts | 19 | 10/06/2011 11:53 AM |
| [Include] [INC]YCP - Yaheli's Checkpoint Streamer - OnPlayerUpdate CP Streamer! | Yaheli_Faro | Includes | 46 | 20/04/2010 02:53 PM |
| Checkpoint streamer | DarkPower | Help Archive | 3 | 10/02/2010 07:02 PM |
| Simple Define Include *Unfinished* | Ritchie999 | Help Archive | 0 | 05/11/2009 07:26 PM |