Hey
Immer wenn ich in den Checkpoint 999 reinfahre stürtz der Server ab:
for(new h=0; h<sizeof(PilotFlug); h++){
if(GetPlayerVehicleID(playerid) == PilotFlug[h]){
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 511)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE2, "Du bist als Pilot im Dienst");
SetPlayerCheckpoint(playerid,1984.1763,-2593.0461,13.5512, 15);
CP[playerid] = 999;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "Du bist kein Pilot.");
}}}
if(CP[playerid] == 999)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, " Fliege nun nach San Fierro");
SetPlayerCheckpoint(playerid,-1630.5909,-137.4778,14.1468);
CP[playerid] = 1000;
}
return 1;
}
if(CP[playerid] == 1000)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, " Fliege nun nach LV");
SetPlayerCheckpoint(1389.4208,1670.2566,12.1643);
CP[playerid] = 1001;
}
return 1;
}
if(CP[playerid] == 1001)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, " Du erhälst 3000$ und 4 Erfahrungspunkte");
DisablePlayerCheckpoint(playerid);
CP[playerid] = 99;
}
return 1;
}