Vehicles-is this possible
#2

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.
Reply


Messages In This Thread
Vehicles-is this possible - by fubar - 28.12.2010, 23:12
Re: Vehicles-is this possible - by PowerPC603 - 28.12.2010, 23:21
Re: Vehicles-is this possible - by [SU]Fnugski - 28.12.2010, 23:21
Re: Vehicles-is this possible - by fubar - 28.12.2010, 23:29
Re: Vehicles-is this possible - by [SU]Fnugski - 28.12.2010, 23:38
Re: Vehicles-is this possible - by Lookin - 29.12.2010, 14:03

Forum Jump:


Users browsing this thread: 1 Guest(s)