Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Command("spawn", Alias = "s", Shortcut = "v")]
- [CommandGroup("vehicle")]
- 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);
- }
- [Command("vehicle")]
- public static void VehicleOverloadCommand(GtaPlayer player)
- {
- player.SendClientMessage(
- "This is the 'vehicle' overload. 'v', 'vehicle spawn' and 'vehicle list' is also available.");
- }
- [Command("tell")]
- [Text("message")]
- public static void TellCommand(GtaPlayer player, GtaPlayer to, string message)
- {
- to.SendClientMessage(Color.Green, "{0} tells you: {1}", player.Name, message);
- }
- [Command("put")]
- 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);
- }
- [Command("position")]
- public static void PositionCommand(GtaPlayer player)
- {
- player.SendClientMessage(Color.Green, "Position: {0}", player.Position);
- }
- [Command("teleport", Alias = "tp")]
- public static void TpCommand(GtaPlayer player, int x, int y, int z = 4)
- {
- player.Position = new Vector3(x, y, z);
- Console.WriteLine("Teleporting {0} to {1}, {2}, {3}", player, x, y, z);
- }
- [Command("wor")]
- public static void World(GtaPlayer player, int world)
- {
- player.VirtualWorld = world;
- }
- [Command("int")]
- public static void Interior(GtaPlayer player, int interior)
- {
- player.Interior = interior;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement