SA-MP Forums Archive
[Include] [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - 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]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports (/showthread.php?tid=36612)



[INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - Grove - 09.05.2008

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,Float:y,Fl oat:z,Floatize); - 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:
Code:
new Export;
OnPlayerSpawn(playerid)
{
  Export = CreatePlayerCheckpoint(playerid,4231.42,3747.0,3212.4,5);
  return 1;
}

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



Re: [INC]gCheckpoint - Easy checkpoints by Grove! - Grove - 09.05.2008

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





Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - Snickers - 09.05.2008

Nice.


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - Grove - 09.05.2008

Thanks


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - whooper - 07.08.2008

i get undefined symbol gcheckid


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - BioFreeze - 19.11.2008


The link is dead , Could you re-upload it please ?

Thanks in advance,


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - Grove - 19.11.2008

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.


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - BioFreeze - 19.11.2008

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


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - Street-Fighter - 24.11.2008

new link please


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - BioFreeze - 24.11.2008

Quote:
Originally Posted by Street-Fighter
new link please
Read the post before my post , then realize you spammed this topic.


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - giedrius166 - 24.11.2008

nice


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - krisis32 - 28.11.2008

Warning.. Link is dead!


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - KnooL - 30.01.2009

Quote:
Originally Posted by Jay_
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 ;(


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - DorkAZoid - 03.04.2009

OMG Nice
i was looking for this for my sf dm.
Will add you in the credits bro


[INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - jordydalstra-server - 08.04.2009

the download link does'nt work


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - tolunay98 - 07.10.2009

Refresh link pls


Re: [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports - Jay_ - 07.10.2009

I don't actually have it, sorry. I may rewrite it soon, IIRC it was done in a bad way anyway.