Random Vehicles
#1

Hello,

I want to know how I could make Random vehicles (Vehicles who are different when they respawn).
Please could someone make a tutorail for me, thanks.

Greetz,,
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)