Re: How to use checkpoints -
Notis123 - 13.12.2011
that helped me alot

it would be better if it was for shamal missiosn xD
Re: How to use checkpoints -
§с†¶e®РµРe - 13.12.2011
Nice One!!!
btw 51 replies cool
Re: Re : How to use checkpoints -
Wesley221 - 31.12.2011
Quote:
Originally Posted by Notis123
that helped me alot  it would be better if it was for shamal missiosn xD
|
Just locate the checkpoints in the air, and you got the same thing
Quote:
Originally Posted by §с†¶e®РµРe
Nice One!!!
btw 51 replies cool
|
Quote:
Originally Posted by §с†¶e®РµРe
Very nice
|
Quote:
Originally Posted by mehdi-jumper
Very good tuto  Thanks, I'll use it to make driving license and flying license 
Give[rep]=++
Thank you and continue to make tutoral like that!
|
Thanks
Re: How to use checkpoints -
oblexive - 13.07.2012
Hey im getting a few errors when I compile. :/
ZRP.pwn(17041) : error 025: function heading differs from prototype
ZRP.pwn(17045) : error 017: undefined symbol "playerid"
ZRP.pwn(17053) : error 017: undefined symbol "playerid"
These are on the line OnPlayerEnterDynamicCP
edit: nvm im hell dumb. :P
Re: How to use checkpoints -
Elysian` - 13.07.2012
Obviously, cos you never showed us the lines.
Re: How to use checkpoints -
Jimmy0wns - 30.12.2012
Код:
C:\Users\r530\Desktop\Pilots Server\gamemodes\pilot.pwn(162) : error 017: undefined symbol "Ccp"
C:\Users\r530\Desktop\Pilots Server\gamemodes\pilot.pwn(162) : warning 215: expression has no effect
C:\Users\r530\Desktop\Pilots Server\gamemodes\pilot.pwn(162) : error 001: expected token: ";", but found "]"
C:\Users\r530\Desktop\Pilots Server\gamemodes\pilot.pwn(162) : error 029: invalid expression, assumed zero
C:\Users\r530\Desktop\Pilots Server\gamemodes\pilot.pwn(162) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
The line:
Sorry that i'm bumping this post, but i could not find a better tutorial for this.
Re: How to use checkpoints -
JonesyFoCoTDM - 05.09.2013
Hi there, first off, great tutorial

.
One problem, everything works fine until I arrive at the last checkpoint. When I get there, nothing happens at all - the checkpoint remains there and I don't receive any message or money. Any ideas?
Thanks in advance.
Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(tcp[playerid] == 1) // This checks if our variable equals to 1, if so: it continues
{
DisablePlayerCheckpoint(playerid); // This makes sure that there will be a new checkpoint
tcp[playerid] = 2; // Changes the variable, so we can use it later again with OnPlayerEnterCheckpoint
SetPlayerCheckpoint(playerid, -335.0937,1062.7295,19.7392, 4.0); // Fort carson dropoff
SendClientMessage(playerid, -1, "You have just picked up the goods, please drop them off at Fort Carson Medical Center.");
return 1;
}
if(tcp[playerid] == 2) // This checks if our variable equals to 1, if so: it continues
{
DisablePlayerCheckpoint(playerid); // This makes sure that there will be a new checkpoint
tcp[playerid] = 3; // Changes the variable, so we can use it later again with OnPlayerEnterCheckpoint
SetPlayerCheckpoint(playerid, -82.6880,-1124.5398,1.0847, 4.0);//Back to HQ for pay
SendClientMessage(playerid, -1, "You have just dropped the good off, please head back to HQ to collect your pay for this job.");
return 1;
}
if(tcp[playerid] == 4) // This checks if our variable equals to 1, if so: it continues
{
DisablePlayerCheckpoint(playerid); // This makes sure that there will be a new checkpoint
tcp[playerid] = 5; // Changes the variable, so we can use it later again with OnPlayerEnterCheckpoint
SendClientMessage(playerid, -1, "You have been payed $500 for this job.");
GivePlayerMoney(playerid, 500);
return 1;
}
return 1;
}
Re: How to use checkpoints -
JonesyFoCoTDM - 05.09.2013
Noticed my silly error and fixed it. I've got another problem I can't seem to work out though with IsPlayerInVehicle. I want to make it so my command will only work in vehicle 403, but there's going to be multiple of them. Any ideas?
Thanks again.
Re: How to use checkpoints -
Fresh9884 - 06.09.2013
Good tutorial for begginers starting to script.
Re: How to use checkpoints -
thaKing - 11.03.2014
Thank you for this tutorial it's very helpful for me.
Re: How to use checkpoints -
Stereotype - 30.06.2014
Good job
Re: How to use checkpoints -
Timeless - 01.07.2014
Thanks this helped, btw when leaving a building after u got the palyerid's previous position whats the new coordinates to put? for example
if(checkpointid = entercheckpoint)
{
GetPlayerPos(playerid, xpos,ypos,zpos);
SetPlayerPos(playerid,bla bla)
SetPlayerInterior(playerid, 1);
}
now for the exit checkpoint
if(checkpointid = exitcheckpoint)
{
setplayerpos(playerid, xpos -1,ypos -1,zpos );
SetPlayerInterior(playerid, 0?);
}
is -1 the correct one to use? cause it works for some exit checkpoints just not all, i'm wondering if it has a fixed number?
Re: How to use checkpoints -
BlackbirdXd - 12.02.2017
Amazing Tutorial Thank you so much Just didn't understand that point This is "Checkpoint[0]" \"Checkpoint[0]\""