ocmd:fahrpruefung(playerid,params[])
{
GivePlayerMoney(playerid, -2250);
SetPlayerPos(playerid,-2015.6979,-127.0069,35.2624);
SetPlayerInterior(playerid,0);
Checkpoint[playerid] = 1;
SetPlayerCheckpoint(playerid,-2045.8378,-98.3232,35.1641,2);
SendClientMessage(playerid, GRÜN, "Bitte steig ins das Fahrzeug! - Du startest den Motor mit /motor!");
return 1;
}
if(SpielerInfo[playerid][Fuehrerschein] == 0)
{
if(Checkpoint[playerid] == 1)
{
SendClientMessage(playerid, GRÜN, "Checkpoint erreicht!");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-1844.9995,-116.6400,5.4922,2);
Checkpoint[playerid] = 2;
}
else if(Checkpoint[playerid] == 2)
{
SendClientMessage(playerid, GRÜN, "Checkpoint erreicht!");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-1763.5962,-28.9480,11.0547,2);
Checkpoint[playerid] = 3;
}
Checkpoint 1, wird gesetzt aber alle weiteren nicht, was könnte das sein?