[Ajuda] Veiculo
#1

Porque isto aqui nгo estб funcionando:
pawn Код:
new ve[3];

public OnGameModeInit()
{
    ve[0] = AddStaticVehicle(500,2158.0811,2797.5488,10.8203,137.8767,0,0);
    ve[1] = AddStaticVehicle(501,2158.0811,2952.5488,19.0203,107.2815,0,0);
    ve[2] = AddStaticVehicle(502,1067.0204,2583.2886,10.8312,44.2695,0,0);
    return 1;
}

public OnPlayerConnect(playerid)
{
    new vehmode = GetPlayerVehicleID(playerid);
    if (vehmode >= ve[0] && vehmode <= ve[2])
    {
          SetVehicleVirtualWorld(vehmode, 98);
    }
    return 1;
}
O Virtual World nгo й setado!
Reply
#2

pawn Код:
for(new i; i < sizeof(ve); ++i) {
    SetVehicleVirtualWorld(ve[i], 98);
}
Reply
#3

Obrigado zbt.

Funcionou. +rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)