Anfang Bussystem + Skill

This commit is contained in:
Mac_Slash
2020-04-27 12:54:19 +02:00
parent 78ccd9a314
commit 929344c1c3
4 changed files with 125 additions and 8 deletions

View File

@@ -504,6 +504,36 @@ namespace ReallifeGamemode.Server.Events
player.SendNotification("~r~Du hast keinen Schlüssel.");
return;
}
else
{
if (u.JobId == 4)
{
if (v.Model == (uint)Types.VehicleModel.Coach)
{
if (u.BusSkill < 300)
{
player.SendNotification("~r~Dein Skilllevel(2) ist nicht hoch genug!");
return;
}
else
{
}
}
if (v.Model == (uint)Types.VehicleModel.Tourbus)
{
if (u.BusSkill < 800)
{
player.SendNotification("~r~Dein Skilllevel(3) ist nicht hoch genug!");
return;
}
else
{
}
}
}
}
}
else if (sV is UserVehicle uV)
{