hey liebe community.
unwar möchte ich das wen ein busfahrer /linie macht checkponts kommen bisj etzt habe ich das so
if(pCP[playerid] == CHECKPOINT_BUSSTART)
{
SendClientMessage(playerid, BLAU, "Du bist an der Busstation nimm dir ein bus und fahr deine linie.");
pCP[playerid] = CHECKPOINT_NONE;
}
else if(pCP[playerid] == CHECKPOINT_bus1)
{
SetPlayerCheckpoint(playerid, 794.1573,-1096.1975,23.5284, 5.0);
pCP[playerid] = CHECKPOINT_bus2;
}
else if(pCP[playerid] == CHECKPOINT_bus2)
{
SetPlayerCheckpoint(playerid, 742.7133,-1393.4297,13.0455, 5.0);
pCP[playerid] = CHECKPOINT_bus3;
}
else if(pCP[playerid] == CHECKPOINT_bus3)
{
SetPlayerCheckpoint(playerid, 301.2852,-1397.0028,13.5145, 5.0);
pCP[playerid] = CHECKPOINT_bus4;
}
else if(pCP[playerid] == CHECKPOINT_bus4)
{
SetPlayerCheckpoint(playerid, 354.8143,-1648.1133,32.4861, 5.0);
pCP[playerid] = CHECKPOINT_bus5;
}
else if(pCP[playerid] == CHECKPOINT_bus5)
{
SetPlayerCheckpoint(playerid, 678.2159,-1760.6434,12.9662, 5.0);
pCP[playerid] = CHECKPOINT_bus6;
}
else if(pCP[playerid] == CHECKPOINT_bus6)
{
SetPlayerCheckpoint(playerid, 1153.5178,-1714.3553,13.4061, 5.0);
pCP[playerid] = CHECKPOINT_bus7;
}
else if(pCP[playerid] == CHECKPOINT_bus7)
{
SetPlayerCheckpoint(playerid, 1479.6708,-1735.2942,13.0075, 5.0);
pCP[playerid] = CHECKPOINT_bus8;
}
else if(pCP[playerid] == CHECKPOINT_bus8)
{
SetPlayerCheckpoint(playerid, 1442.5582,-1524.2251,13.0075, 5.0);
pCP[playerid] = CHECKPOINT_busende;
}
else if(pCP[playerid] == CHECKPOINT_busende)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Die Bus fahrt ist zu ende..");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Bus-Erfahrungspunkte sind um 5 aufgestiegen.");
Spieler[playerid][BusExp] += 5;
DisablePlayerCheckpoint(playerid);
pCP[playerid] = CHECKPOINT_NONE;
}
wie muss ich den befehl machen das wen ich im bus sitze und /linie mache die chekpoints kommen ?