SA-MP Forums Archive
Checkpoint help. Please look. I'm a bit stuck you know. - 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: Checkpoint help. Please look. I'm a bit stuck you know. (/showthread.php?tid=121945)



Checkpoint help. Please look. I'm a bit stuck you know. - bartje01 - 19.01.2010

Hello everyone. I've got a little question.
Well. I'm able to make ONE checkpoint. But just 1. not more.
I don't know how to make more. Look:




public OnPlayerSpawn(playerid)
{


SetPlayerCheckpoint(playerid, 1693.0134,1590.6849,21.4086, 3.0);

}


public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);






return 1;
}



I don't have any errors with that.
But now I want to make another checkpoint somewhere else that will give you 3000 money.
So how to make another? I tryed this:




public OnPlayerSpawn(playerid)
{


SetPlayerCheckpoint(playerid, 1693.0134,1590.6849,21.4086, 3.0);

SetPlayerCheckpoint(playerid, 1294.1214,1590.6849,44.2446, 3.0);


}



public OnPlayerEnterCheckpoint(playerid)
{
GivePlayerMoney(playerid, 1000);
DisablePlayerCheckpoint(playerid);



GivePlayerMoney(playerid, 3000);
DisablePlayerCheckpoint(playerid);





return 1;
}



So I just did 2 things in public OnPlayerSpawn(playerid) and public OnPlayerEnterCheckpoint(playerid)



Well. I failed at that. So can anyone help me please?


Re: Checkpoint help. Please look. I'm a bit stuck you know. - JoeDaDude - 19.01.2010

You need a Checkpoint Streamer,
Otherwise you cant create more than 1


Re: Checkpoint help. Please look. I'm a bit stuck you know. - bartje01 - 19.01.2010

Quote:
Originally Posted by JoeDaDude
You need a Checkpoint Streamer,
Otherwise you cant create more than 1
alright. Thanks. Ill try