Bus Route Help
#1

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;
}
Reply
#2

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
Reply
#3

No I dont want a checkpoint that is set in one spot. I want to be able to change it at will.
Reply
#4

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.
Reply
#5

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.
Reply
#6

Bump
Reply
#7

Bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)