SA-MP Forums Archive
[HELP]Checkpoint Problems! - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]Checkpoint Problems! (/showthread.php?tid=397293)



[HELP]Checkpoint Problems! - Veeco - 04.12.2012

Hey
Have problem again with checkpoints :/

I Tryed To Use /Car And Buy Own In My House In PPC Trucking...
But You See!
Whats The Error?

Its Come : You Need To Be In Your Vehicle To Proceed

Code :
Quote:

//Includes
#include <a_samp>
#include <streamer>
#include <zcmd>

CMDtartharvest(playerid, params[])
{
SetPlayerCheckpoint(playerid, -102.0503, 148.3964, 3.1164, 3.0);
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, -102.0503, 148.3964, 3.1164, 3.0))
{
SetPlayerCheckpoint(playerid, -123.4742, 98.0780, 3.1172, 3.0);
DisablePlayerCheckpoint(playerid);
}
else if(IsPlayerInRangeOfPoint(playerid, -123.4742, 98.0780, 3.1172, 3.0))
{
SetPlayerCheckpoint(playerid, -109.7551, 151.8636, 3.3736, 3.0);
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 10000);
}
return 1;
}