[Include] [INC]gCheckpoint - Easy checkpoints by Grove! + [FS] Vehicle Exports
#1

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;
}
Reply
#2

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


Reply
#3

Nice.
Reply
#4

Thanks
Reply
#5

i get undefined symbol gcheckid
Reply
#6


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

Thanks in advance,
Reply
#7

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.
Reply
#8

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
Reply
#9

new link please
Reply
#10

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

nice
Reply
#12

Warning.. Link is dead!
Reply
#13

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 ;(
Reply
#14

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

the download link does'nt work
Reply
#16

Refresh link pls
Reply
#17

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


Forum Jump:


Users browsing this thread: 3 Guest(s)