28.12.2010, 23:21
I don't think that's possible.
But you can use a command to port to each vehicle:
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.
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;
}
/portvehicle 5
will port you to the location of the vehicle with id 5.