25.09.2010, 16:14
try this
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
new
i,
model,
Float:vehx,
Float:vehy,
Float:vehz;
for (i = 0; i < MAX_VEHICLES; ++i)
{
new
Text3D:label;
model = GetVehicleModel(i);
if (!model) break;
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);
}
if (model == AndriusZI) label = Create3DTextLabel("AndriusZ Transportas", aSpalva, vehx, vehy, vehz, 20.0, 0, 1);
else if (model == 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;
}