Hi ich hab ein Bus System gemacht FUnzt auch Prima aber wie mache ich das man am checkpoint 10 Sek warten muss ?
Code
if(BusfahrerCP[playerid] == 1 && IsPlayerInRangeOfPoint(playerid,10.0,1173.3486,-1825.7494,13.3984))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1429.5594,-1734.4579,13.3828, 5.0);
BusfahrerCP[playerid] = 2;
}
else if(BusfahrerCP[playerid] == 2 && IsPlayerInRangeOfPoint(playerid,10.0,1429.5594,-1734.4579,13.3828))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1824.3145,-1646.8474,13.3828, 5.0);
BusfahrerCP[playerid] = 3;
}
else if(BusfahrerCP[playerid] == 3 && IsPlayerInRangeOfPoint(playerid,10.0,1824.3145,-1646.8474,13.3828))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 2241.2263,-2042.0977,13.3854, 5.0);
BusfahrerCP[playerid] = 4;
}
else if(BusfahrerCP[playerid] == 4 && IsPlayerInRangeOfPoint(playerid,10.0,2241.2263,-2042.0977,13.3854))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 2304.8892,-2324.6445,13.3828, 5.0);
BusfahrerCP[playerid] = 5;
}
else if(BusfahrerCP[playerid] == 5 && IsPlayerInRangeOfPoint(playerid,10.0,2304.8892,-2324.6445,13.3828))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 2355.2253,-3951.2927,9.7784, 5.0);
BusfahrerCP[playerid] = 6;
}
else if(BusfahrerCP[playerid] == 6 && IsPlayerInRangeOfPoint(playerid,10.0,2355.2253,-3951.2927,9.7784))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 2308.0217,-3964.2480,9.7058, 5.0);
BusfahrerCP[playerid] = 7;
}
else if(BusfahrerCP[playerid] == 7 && IsPlayerInRangeOfPoint(playerid,10.0,2308.0217,-3964.2480,9.7058))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1724.9026,-4029.4495,6.7219, 5.0);
BusfahrerCP[playerid] = 8;
}
else if(BusfahrerCP[playerid] == 8 && IsPlayerInRangeOfPoint(playerid,10.0,1724.9026,-4029.4495,6.7219))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1472.4265,-4031.2639,6.7119, 5.0);
BusfahrerCP[playerid] = 9;
}
else if(BusfahrerCP[playerid] == 9 && IsPlayerInRangeOfPoint(playerid,10.0,1472.4265,-4031.2639,6.7119))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1063.5063,-3877.1685,11.6617, 5.0);
BusfahrerCP[playerid] = 10;
}
else if(BusfahrerCP[playerid] == 10 && IsPlayerInRangeOfPoint(playerid,10.0,1063.5063,-3877.1685,11.6617))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 410.0854,-3317.1648,7.7320, 5.0);
BusfahrerCP[playerid] = 11;
}
else if(BusfahrerCP[playerid] == 11 && IsPlayerInRangeOfPoint(playerid,10.0,410.0854,-3317.1648,7.7320))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 372.5183,-1968.4656,7.6719, 5.0);
BusfahrerCP[playerid] = 12;
}
else if(BusfahrerCP[playerid] == 12 && IsPlayerInRangeOfPoint(playerid,10.0,372.5183,-1968.4656,7.6719))
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 1172.7682,-1824.9720,13.3984, 5.0);
BusfahrerCP[playerid] = 13;
}
else if(BusfahrerCP[playerid] == 13 && IsPlayerInRangeOfPoint(playerid,10.0,1172.7682,-1824.9720,13.3984))
{
Alles anzeigen