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