[Duda] OnVehicleSpawn
#2

Nota aparte:

pawn Код:
switch (random(5))
    {
        case 0: SetVehicleHealth(vehicleid, 350);
        case 1: SetVehicleHealth(vehicleid, 500);
        case 2: SetVehicleHealth(vehicleid, 700);
        case 3: SetVehicleHealth(vehicleid, 400);
        case 4: SetVehicleHealth(vehicleid, 600);
    }
   
    case 0: UpdateVehicleDamageStatus(vehicleid, pannels, doors, lights, random(8));
(Cуdigo mejorado) xD


Por cierto, cuando un vehнculo es creado OnVehicleSpawn no es llamado, tenйs que usar SetVehicleToRespawn.
Reply


Messages In This Thread
[Duda] OnVehicleSpawn - by leaNN! - 14.03.2011, 12:40
Re: [Duda] OnVehicleSpawn - by MrDeath537 - 14.03.2011, 13:07
Respuesta: [Duda] OnVehicleSpawn - by leaNN! - 14.03.2011, 13:10
Respuesta: [Duda] OnVehicleSpawn - by leaNN! - 14.03.2011, 13:54

Forum Jump:


Users browsing this thread: 2 Guest(s)