SetVehicletoRespawn
#7

Son diferentes, pero les cambia el spos a puros ceros (0.000, etc.), supongo que spos significa spawnpos.

Asн es como les hago spawn a los vehiculos:

pawn Код:
dcmd_createvehicle(playerid, params[])
{
    new Float:Pos[4], modelid, vehicleid, engine, lights, alarm, door, bonnet, boot, objective;
    if(pInfo[playerid][Level] == 0) return 0;
    else if(sscanf(params, "i", modelid)) return Message(playerid, YELLOW, " » Usage: /createvehicle <modelid>");
    else
    {
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        GetPlayerFacingAngle(playerid, Pos[3]);
        vehicleid = CreateVehicle(modelid, Pos[0], Pos[1], Pos[2], Pos[3], random(400), random(400), 5000000);
        VehicleCreated[vehicleid] = true;
        VehicleJob[vehicleid] = false;
        VehicleInfo[vehicleid][Engine] = false;
        GetVehicleParamsEx(vehicleid, engine, lights, alarm, door, bonnet, boot, objective);
        SetVehicleParamsEx(vehicleid, false, lights, alarm, door, bonnet, boot, objective);
        PutPlayerInVehicle(playerid, vehicleid, 0);
        Message(playerid, ADMIN, " » Vehicle created");
    }
    return 1;
}
No se si algo este mal con este comando.
Reply


Messages In This Thread
SetVehicletoRespawn - by arturo clark - 22.04.2012, 05:16
Respuesta: SetVehicletoRespawn - by Zume - 23.04.2012, 01:39
Re: SetVehicletoRespawn - by arturo clark - 25.04.2012, 00:47
Respuesta: SetVehicletoRespawn - by Fluid016 - 25.04.2012, 00:48
Re: SetVehicletoRespawn - by arturo clark - 25.04.2012, 00:51
Respuesta: SetVehicletoRespawn - by [J]ulian - 25.04.2012, 01:31
Re: SetVehicletoRespawn - by arturo clark - 25.04.2012, 02:35

Forum Jump:


Users browsing this thread: 1 Guest(s)