11.06.2011, 09:09
pawn Код:
new warvehicles[5]
new Text3D:vLabel[MAX_VEHICLES];
public OnGameModeInit()
{
warvehicle[0] = CreateVehicle(.....);
warvehicle[1] = CreateVehicle(.....);
//same...........
return 1;
}
public OnVehicleSpawn(vehicleid);
{
if(warvehicle[0] == vehicleid)
{
vLabel = Create3DTextLabel( "War Vehicle", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( vLabel , vehicleid, 0.0, 0.0, 2.0);
}
return 1;
}