Exemple #1
0
        public static void VehicleCommand(GtaPlayer player, VehicleModelType model)
        {
            player.SendClientMessage(Color.GreenYellow, "You have spawned a {0}", model);
            Console.WriteLine("Spawning a {0} {2} for {1}", model, player, (int)model);
            GtaVehicle vehicle = GtaVehicle.Create(model, player.Position + new Vector3(0, 0, 0.5f), player.Rotation.Z, -1,
                                                   -1);

            player.PutInVehicle(vehicle);
        }
Exemple #2
0
 public static void PutCommand(GtaPlayer player, int vehicleid, int seat = 0)
 {
     GtaVehicle v = GtaVehicle.Find(vehicleid);
     if (v == null)
     {
         player.SendClientMessage(Color.Red, "This vehicle does not exist!");
         return;
     }
     player.PutInVehicle(v, seat);
 }
Exemple #3
0
        public static void PutCommand(GtaPlayer player, int vehicleid, int seat = 0)
        {
            GtaVehicle v = GtaVehicle.Find(vehicleid);

            if (v == null)
            {
                player.SendClientMessage(Color.Red, "This vehicle does not exist!");
                return;
            }
            player.PutInVehicle(v, seat);
        }
Exemple #4
0
 public static void VehicleCommand(GtaPlayer player, VehicleModelType model)
 {
     player.SendClientMessage(Color.GreenYellow, "You have spawned a {0}", model);
     Console.WriteLine("Spawning a {0} {2} for {1}", model, player, (int) model);
     GtaVehicle vehicle = GtaVehicle.Create(model, player.Position + new Vector3(0, 0, 0.5f), player.Rotation.Z, -1,
         -1);
     player.PutInVehicle(vehicle);
 }