PDA

View Full Version : [Include] [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports


Grove
09/05/2008, 11:08 AM
Heres a simple but useful checkpoint handler I just whipped up (Only took me 15 minutes, so if there are any problems, slap me and I'll fix them)

Remember, this is a checkpoint handler, not a streamer! Basically, this adds an additional parameter to checkpoints, being checkpointid, and returns the id allowing you to assign variables to each checkpoint.

Functions:

CreatePlayerCheckpoint(playerid,Float:x,Float:y,Fl oat:z,Float:size); - Creates a checkpoint and shows it for the player.

RemovePlayerCheckpoint(playerid) - More or less the same as DisablePlayerCheckpoint(playerid), only, use this instead.

IsPlayerInCp(playerid,checkpointid) - Returns 1 if a player is in the checkpoint, and -1 if the player is not!

Callbacks:

OnPlayerCheckpoint(playerid,checkpointid)
OnPlayerExitCheckpoint(playerid,checkpointid)


For installation, Read the readme!

Download:
http://bin.sa-mp.nl/f/gCheckpoint.zip

Example Usage:

new Export;
OnPlayerSpawn(playerid)
{
Export = CreatePlayerCheckpoint(playerid,4231.42,3747.0,321 2.4,5);
return 1;
}

OnPlayerCheckpoint(playerid,checkpointid)
{
if(checkpointid == Export)
{
//Do somthing!
}
return true;
}

Grove
09/05/2008, 11:24 AM
gCheckpoint Example: Export Filterscript:

Here is a filterscript that can be used as an example in accordance to the handler. It is an export system that basically, when entering certain vehicles, shows a checkpoint where you can export it depending on how damaged the vehicle is:

http://bin.sa-mp.nl/f/gExport.zip

Snickers
09/05/2008, 12:17 PM
Nice.

Grove
09/05/2008, 01:01 PM
Thanks ;)

whooper
07/08/2008, 05:55 PM
i get undefined symbol gcheckid

BioFreeze
19/11/2008, 05:19 PM
The link is dead :roll: , Could you re-upload it please ?

Thanks in advance,

Grove
19/11/2008, 05:21 PM
I don't have a spare copy unfortunately. Hopefully when the LVP web servers are back online the link will work again in a few weeks.

BioFreeze
19/11/2008, 06:15 PM
I don't have a spare copy unfortunately. Hopefully when the LVP web servers are back online the link will work again in a few weeks.


Meh, ok , ty

Street-Fighter
24/11/2008, 08:29 PM
new link please

BioFreeze
24/11/2008, 09:15 PM
new link please


Read the post before my post , then realize you spammed this topic.

giedrius166
24/11/2008, 09:36 PM
nice

krisis32
28/11/2008, 06:57 PM
Warning.. Link is dead!

KnooL
30/01/2009, 07:24 AM
I don't have a spare copy unfortunately. Hopefully when the LVP web servers are back online the link will work again in a few weeks.

.. This is a super Checkpoint thing, and then u got no backup :-[
Shame ;(

DorkAZoid
03/04/2009, 09:45 AM
OMG Nice :D
i was looking for this for my sf dm.
Will add you in the credits bro ;)

jordydalstra-server
08/04/2009, 11:57 AM
the download link does'nt work :( :( :( :(

tolunay98
07/10/2009, 04:38 PM
Refresh link pls

Jay_
07/10/2009, 08:09 PM
I don't actually have it, sorry. I may rewrite it soon, IIRC it was done in a bad way anyway.