Guten Morgen
ich habe mir gerade ein Truckerjob erstellt und da kommt nach den 2. Checkpoint nichts mehr
hier mal ein paar auszüge
der hier kommt
public OnPlayerStateChange(playerid, newstate, oldstate)
{
//Jobs
new modelid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)//Truckerjob
{
if(modelid == 403)
{
if(GetPVarInt(playerid,"Job") == 1)
{
SetPlayerCheckpoint(playerid, -1898.2880,-1741.2693,21.4771, 5.0);//SF-Bergwerk
SendClientMessage(playerid,BLAU,"Fahre zum San Fierro Bergwerk");
SetPVarInt(playerid,"Trucker",100);
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,rot,"Du bist kein Trucker!");
}
}
}
die nicht mehr
public OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
if(GetPVarInt(playerid,"Trucker")==100)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 403) return SendClientMessage(playerid, cRed, "Du musst in deinem Truck sitzen!");
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid,"Trucker",101);
SetPlayerCheckpoint(playerid,605.1642,904.0392,-45.1068,5.0);//LV Bergwerk
SendClientMessage(playerid,BLAU,"Fahre zum Las Venturas Bergwerk");
return 1;
}
if(GetPVarInt(playerid,"Trucker")==101)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 403) return SendClientMessage(playerid, cRed, "Du musst in deinem Truck sitzen!");
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid,"Trucker",102);
SetPlayerCheckpoint(playerid,-216.4082,-223.8202,1.1489,5.0);//Truckerbase
SendClientMessage(playerid,BLAU,"Fahre zur Truckerbase");
return 1;
}
if(GetPVarInt(playerid,"Trucker")==102)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 403) return SendClientMessage(playerid, cRed, "Du musst in deinem Truck sitzen!");
TogglePlayerControllable(playerid, 0);
SetPVarInt(playerid,"Trucker",0);
SendClientMessage(playerid,BLAU,"Auftrag erfolgreich ausgeführt sie bekommen 3500$ als Belohnung");
GivePlayerMoney(playerid,3500);
return 1;
}
ich hoffe, das ihr helfen könnt