Bus Route Help - 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: Bus Route Help (
/showthread.php?tid=388522)
Bus Route Help -
[TC]XxJuggaloxX - 29.10.2012
So I am trying to create a bus route based on a dynamic system. I want it to follow the ID of the labels placed around.
This is what I have, But I am not sure if this would be a good start to being able to do what I want.
Any help would be appreciated.
pawn Код:
CMD:startroute(playerid, params[])
{
new stopid;
if(CheckPointCheck(playerid))
{
SendClientMessageEx(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (You have another existing checkpoint).");
return 1;
}
else
{
switch(BStopInfo[stopid][bsTextID])
{
case 0:
{
SetPlayerCheckpoint(playerid,BStopInfo[stopid][bsExteriorX], BStopInfo[stopid][bsExteriorY], BStopInfo[stopid][bsExteriorZ], 4.0);
}
}
return 1;
}
Re: Bus Route Help -
guitarmandanny - 29.10.2012
Quote:
Originally Posted by [TC]XxJuggaloxX
So I am trying to create a bus route based on a dynamic system. I want it to follow the ID of the labels placed around.
This is what I have, But I am not sure if this would be a good start to being able to do what I want.
Any help would be appreciated.
pawn Код:
CMD:startroute(playerid, params[]) { new stopid; if(CheckPointCheck(playerid)) { SendClientMessageEx(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (You have another existing checkpoint)."); return 1; } else { switch(BStopInfo[stopid][bsTextID]) { case 0: { SetPlayerCheckpoint(playerid,BStopInfo[stopid][bsExteriorX], BStopInfo[stopid][bsExteriorY], BStopInfo[stopid][bsExteriorZ], 4.0); } } return 1; }
|
I'd use Racecheckpoints for this
SetPlayerRaceCheckpoint use a Freeze timer once player is in checkpoint
IsPlayerInRaceCheckpoint
Re: Bus Route Help -
[TC]XxJuggaloxX - 29.10.2012
No I dont want a checkpoint that is set in one spot. I want to be able to change it at will.
Re: Bus Route Help -
guitarmandanny - 29.10.2012
RaceCheckPoints are not set it one spot, you place them in an array and it goes to each one.
You go to one checkpoint and it spawns the next. and it keeps spawn new ones on each checkpoint.
Re: Bus Route Help -
[TC]XxJuggaloxX - 29.10.2012
Thats not what I am talking about
What I am saying is that I dont want to have to code them in each time I want to change the route. I want to be able to do /bsedit and change the position and have the checkpoints auto change to where I did it at.
Re: Bus Route Help -
[TC]XxJuggaloxX - 29.10.2012
Bump
Re: Bus Route Help -
[TC]XxJuggaloxX - 30.10.2012
Bump