interaktion on Key-M & add error massage for driving,planeschool

This commit is contained in:
Michael
2020-06-01 20:34:29 +02:00
parent fb26449cb1
commit 499dced44e
6 changed files with 21 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using GTANetworkAPI;
using ReallifeGamemode.Database.Entities;
using ReallifeGamemode.Database.Models;
@@ -68,8 +68,10 @@ namespace ReallifeGamemode.Server.DrivingSchool
User user = client.GetUser();
if (user.FlyingLicensePlane || client.HasData("ActiveSchool"))
{
client.SendChatMessage("~b~[INFO]~s~ Du besitzt schon einen Flugschein.");
return;
}
if (user.Handmoney < 5000)
{
client.SendNotification("~r~Du brauchst ~g~$5000~r~ auf der Hand um die Prüfung zu starten.", true);