Random Vehicles
#2

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    new
        rand = 400+random(212),
        Float:vx,
        Float:vy,
        Float:vz,
        Float:va;

    GetVehiclePos(vehicleid, vx, vy, vz);
    GetVehicleZAngle(vehicleid, va);
    DestroyVehicle(vehicleid);
    CreateVehicle(rand, vx, vy, vz, va, -1, -1, 180);
    return 1;
}
Not tested, but should work.
Reply


Messages In This Thread
Random Vehicles - by Melvin - 07.09.2010, 19:41
Re: Random Vehicles - by Vince - 07.09.2010, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)