Guten Tag,
Mein Name lautet CIBERKILLER.
Und zwar bäuchte ich mal eure hilfe.
Ich möchte das ein Zug, sich langsam nachvorne bewegt (flüssig) ohne einen NPC herinnen.
Geplant war so so:
@MoveTrain(playerid); @MoveTrain(playerid){
switch(GetPVarInt(playerid, "Zugstatus")){
case 0:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 1:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 2:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 3:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 4:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 5:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 6:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 7:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 8:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 9:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 10:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 11:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 12:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 13:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 14:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 15:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 16:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 17:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 18:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 19:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 20:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 21:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 22:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 23:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 24:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 25:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 26:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 27:SetVehicleVelocity(sInfo[playerid][sZugCar], 0.450000, 0.014314, 0.0090000),SetPVarInt(playerid, "Zugstatus", GetPVarInt(playerid, "Zugstatus") + 1);
case 28:DestroyVehicle(sInfo[playerid][sZugCar]), KillTimer(pTimer[playerid][0]),SetPlayerPos(playerid, 816.8663, -1362.0260, -0.5078), SetPlayerFacingAngle(playerid, 320.6011);
}
return 1;
}
Doch aktuell bewegt er sich nicht oder ich sehe das nicht. (Timer wird ausgeführt)
pTimer[playerid][0] = SetTimerEx("@MoveTrain", 100, true, "i", playerid);
Mit freundlichen Grüßen,
CIBERKILLER