Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command gv(arg){
- permission = "vehicle.give";
- execute(){
- if(arg == null or arg == ""){
- player.message("Porfavor, especifica una id para spawnear.");
- return;
- }
- pos = player.position;
- py = pos.y + 5;
- px = pos.x + 5;
- pp = vector3(px, py, pos.z);
- vehicleManager.spawnVehicle(arg, pp, 0);
- foreach(vehicless in vehicleManager.vehicles){
- distan = v3.distance(vehicless.position, player.position);
- if(distan < 8 and vehicless.id == arg and vehicless.locked == false){
- vehicless.locked = true;
- vehicless.owner = player.id;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement