// Alright i want it so when they do /line [1-4] Say they do /line 1 they will select the line 1 bus route to run I just need help with setting the Checkpoints up when they drive threw them, So I mean like Under /line 1 make line1 = SetPlayerCheckpoint(playerid,X,Y,Z); then when they enter that checkpoint Show them the next Checkpoint
if (strcmp(cmd, "/line", true) ==0 ){
tmp = strtok(cmdtext,idx);
if (gTeam[playerid] != TEAM_TAXIBUS) return SendClientMessage(playerid,RED,"You are not A Bus Driver!");
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_ORANGE,"USAGE: /line [1-4]");
SendClientMessage(playerid,COLOR_ORANGE,"FUNCTION: Will DisPlay The Checkpoints For Canny Bus Group");
}
else if(strcmp(tmp,"1",true) == 0)
{
GetPlayerName(playerid, player, sizeof(player));
SendClientMessage(playerid,COLOR_GREEN,"You Now have Selected Line 1 To Run!");
format(string, sizeof(string), "%s Has Opened Up Line 1: (Bus Transport)", player);
SendClientMessageToAll(COLOR_GREEN,string);
}
else if(strcmp(tmp,"2",true) == 0)
{
GetPlayerName(playerid, player, sizeof(player));
SendClientMessage(playerid,COLOR_GREEN,"You Now have Selected Line 2 To Run!");
format(string, sizeof(string), "%s Has Opened Up Line 2: (Bus Transport)", player);
SendClientMessageToAll(COLOR_GREEN,string);
}
else if(strcmp(tmp,"3",true) == 0)
{
GetPlayerName(playerid, player, sizeof(player));
SendClientMessage(playerid,COLOR_GREEN,"You Now have Selected Line 3 To Run!");
format(string, sizeof(string), "%s Has Opened Up Line 3: (Bus Transport)", player);
SendClientMessageToAll(COLOR_GREEN,string);
}
else if(strcmp(tmp,"4",true) == 0)
{
GetPlayerName(playerid, player, sizeof(player));
SendClientMessage(playerid,COLOR_GREEN,"You Now have Selected Line 4 To Run!");
format(string, sizeof(string), "%s Has Opened Up Line 4: (Bus Transport)", player);
SendClientMessageToAll(COLOR_GREEN,string);
}
else
{
SendClientMessage(playerid,COLOR_RED,"Incorrect Line Usage");
}
return 1;
}