Something wrong with my checkpoints - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Something wrong with my checkpoints (
/showthread.php?tid=88842)
Something wrong with my checkpoints -
Ben147 - 29.07.2009
i dont know why but when im going to the check point that marked in the map not happen nothing here is my script
Код:
else if(PlayerToPoint(2.0, playerid,1525.2194,-2431.9509,13.5547)) // Airport
{
if(PlayerInfo[playerid][pLevel] > 3)
{
if(PlayerInfo[playerid][pFlyLic] < 1)
{
if(pTestFly[playerid] == 0)
{
if(GetPlayerMoney(playerid) >= 3500)
{
SetPlayerRaceCheckpoint(playerid, 3,1453.5537,-2494.2000,14.2607,1806.5820,-2493.8647,14.2595,15.0);
GameTextForPlayer(playerid, "~r~Get in a testing plane",5000,3);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Get in a testing plane and go to the starting point");
pTestFly[playerid] = 1;
TakingLesson[playerid] = 1;
}
Код:
else if(IsAFlyingTest(tmpcar) && PlayerToPoint(15.0, i,1453.5537,-2494.2000,14.2607))
{
if (pTestFly[i] == 1)
{
SetPlayerRaceCheckpoint(i, 3,1806.5820,-2493.8647,14.2595,2235.0701,-2718.4248,59.8103,15.0);
PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0);
}
}
Re: Something wrong with my checkpoints -
Daren_Jacobson - 29.07.2009
are these in OnPlayerEnterCheckpoint or OnPlayerEnterRaceCheckpoint?
Re: Something wrong with my checkpoints -
Ben147 - 29.07.2009
race