new busc[MAX_PLAYER_NAME];
new newcar=GetPlayerVehicleID(playerid);
if(newcar==PLAYER_STATE_DRIVER)
{
if(newcar==431)
SendClientMessage(playerid,ROT,"Fahre nun die Checkpoints ab.");
SetPlayerCheckpoint(playerid,1765.2870,-1750.4829,13.5468,5.0);
GivePlayerMoney(playerid,50);
busc[playerid]=1;
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(busc[playerid]==1)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1477.2671,-1729.1174,13.3828,5.0);
GivePlayerMoney(playerid,50);
busc[playerid]=2;
return 1;
}
if(busc[playerid]==2)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1192.5614,-1330.7826,13.3984,5.0);
GivePlayerMoney(playerid,50);
busc[playerid]=3;
return 1;
}
if(busc[playerid]==3)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1566.3254,-1817.5889,13.3828,5.0);
GivePlayerMoney(playerid,50);
busc[playerid]=4;
return 1;
}
if(busc[playerid]==3)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1786.2521,-1801.8209,13.5238,5.0);
GivePlayerMoney(playerid,50);
busc[playerid]=5;
return 1;
}
if(busc[playerid]==5)
{
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,50);
SendClientMessage(playerid,WEIS,"Du hast Alle Busrouten abgefahren und machst jetzt Feierabend.");
return 1;
}
Es tauchen beim compiler keine Warnungen oder Fehler auf.
Im Spiel selbst passiert überhaupt nix wenn ich in den Bus steige.Es werden keine Checkpoints angezeigt
Kann mir einer Weiter Helfen^^ - Anfänger