Exemple #1
0
 public void CheckVehicleLicenses(Client player, NetHandle vehicle, int seat)
 {
     if (seat == -1)
     {
         if (!Licenses.CanUseVehicle(player, vehicle, true))
         {
             ILicense lic = (ILicense)player.getData("MissedLicense");
             API.sendNotificationToPlayer(player, "Du hast nicht die nötige Lizenz (\"" + lic.GetHumanReadableName() + "\") für dieses Fahrzeug!");
             API.warpPlayerOutOfVehicle(player);
         }
     }
 }
Exemple #2
0
 public bool HasPlayerAllRequirements(Client player)
 {
     return(Licenses.CanUseVehicle(player, VehicleHash.Bulldozer, true));
 }