Vehicles-is this possible -
fubar - 28.12.2010
Ok i have a list of vehicles,but i could really do with sorting them out,is it possible to show all the vehicles on the map,so i can see which vehicle are spawning in the water,i think i have seen something like this before,but im not entirely sure,can anyone shed any light into this problem.
I only want to use this to reset the vehicles that are is weird place's,once i have done this i would not have to use it again,so its not going to be permanent.
cheers in advance for anyhelp
Re: Vehicles-is this possible -
PowerPC603 - 28.12.2010
I don't think that's possible.
But you can use a command to port to each vehicle:
pawn Код:
// Ports the player to the given vehicle
dcmd_portvehicle(playerid, params[])
{
// Setup local variables
new Car, Float:x, Float:y, Float:z, PortMsg[128];
if (sscanf(params, "i", Car)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/portvehicle <CarID>\"");
else
{
// Get the location of the car
GetVehiclePos(Car, x, y, z);
// Port the player to the given location
SetPlayerPos(playerid, x, y, z);
// Let the player know about it
format(PortMsg, 128, "You have been ported to location: %4.2f, %4.2f, %4.2f", x, y, z);
SendClientMessage(playerid, 0x00FF00FF, PortMsg);
}
// Let the server know that this was a valid command
return 1;
}
This code ports you to the location of the vehicle you provide:
/portvehicle 5
will port you to the location of the vehicle with id 5.
Re: Vehicles-is this possible -
[SU]Fnugski - 28.12.2010
i think its impossible.
Re: Vehicles-is this possible -
fubar - 28.12.2010
Thanks for your quick replies,but trouble is i got nearly 2000 cars to check lol,so tele'ing to every car would take some time and i would probaly get bored or fall asleep at some point
i was even thinking maybe a offline way off doing it just to see each car,but i dont know if thats possible either.
Re: Vehicles-is this possible -
[SU]Fnugski - 28.12.2010
you could goto your script and delete all cars but then you got none back
Re: Vehicles-is this possible -
Lookin - 29.12.2010
lol^ this is true.
but with the script fubar is using players have the ability to park cars therefor changing all the co-ords
now fubar the only thing i can suggest is going and deleting all the cars and then adding some and then make a backup of the entire car list/co-ords etc then when need be you can just load the back up now one problem with my theory is that it will mean resetting the players accounts and doing that to often will cause the server to slowly die down in players.
this is just an idea do it at your own choice.