25.09.2010, 16:06
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
new
i,
model,
Float:vehx,
Float:vehy,
Float:vehz,
Text3D:label;
for (i = 0; i < MAX_VEHICLES; ++i)
{
model = GetVehicleModel(i);
if (!model) break;
label = 0;
GetVehiclePos(i, vehx, vehy, vehz);
switch (model)
{
case 402, 477, 487, 522, 560: label = Create3DTextLabel("Yakuza Transportas", ySpalva, vehx, vehy, vehz, 20.0, 0, 1);
case 411, 480, 495, 541, 563: label = Create3DTextLabel("La Cosa Nostra Transportas", lSpalva, vehx, vehy, vehz, 20.0, 0, 1);
case 427, 490, 497, 523, 597, 599: label = Create3DTextLabel("Policijos Departamento Transportas", mSpalva, vehx, vehy, vehz, 20.0, 0, 1);
case 421, 451, 493, 521, 562: label = Create3DTextLabel("Triads Transportas", tSpalva, vehx, vehy, vehz, 20.0, 0, 1);
case 432, 447, 520: label = Create3DTextLabel("Spec. Transportas / lлktuvai", aSpalva, vehx, vehy, vehz, 20.0, 0, 1);
case AndriusZI: label = Create3DTextLabel("AndriusZ Transportas", aSpalva, vehx, vehy, vehz, 20.0, 0, 1);
case DeluxXxN: label = Create3DTextLabel("DeluxXx Transportas", dSpalva, vehx, vehy, vehz, 20.0, 0, 1);
}
if (label) Attach3DTextLabelToVehicle(label, i, 0.0, 0.0, 3.0);
}
return 1;
}